#[non_exhaustive]pub enum ResourceSelector {
All,
None,
KeyAllowList(HashSet<Key>),
}
Expand description
ResourceSelector
is used to select which resource to export with every metrics.
By default, the exporter will only export resource as target_info
metrics but not inline in every
metrics. You can disable this behavior by calling without_target_info
You can add resource to every metrics by set ResourceSelector
to anything other than None
.
By default, ResourceSelector is None
, meaning resource will not be attributes of every metrics.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
All
Export all resource attributes with every metrics.
None
Do not export any resource attributes with every metrics.
KeyAllowList(HashSet<Key>)
Export only the resource attributes in the allow list with every metrics.
Trait Implementations§
source§impl Debug for ResourceSelector
impl Debug for ResourceSelector
source§impl Default for ResourceSelector
impl Default for ResourceSelector
source§fn default() -> ResourceSelector
fn default() -> ResourceSelector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResourceSelector
impl RefUnwindSafe for ResourceSelector
impl Send for ResourceSelector
impl Sync for ResourceSelector
impl Unpin for ResourceSelector
impl UnwindSafe for ResourceSelector
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more