Struct opentelemetry::sdk::resource::Resource [−][src]
pub struct Resource { /* fields omitted */ }
Expand description
Describes an entity about which identifying information and metadata is exposed.
Items are sorted by their key, and are only overwritten if the value is an empty string.
Implementations
Create a new Resource
from key value pairs.
Values are de-duplicated by key, and the first key-value pair with a non-empty string value will be retained
Create a new Resource
from resource detectors.
timeout will be applied to each detector.
Create a new Resource
by combining two resources.
Keys from the other
resource have priority over keys from this resource, even if the
updated value is empty.
Gets an iterator over the attributes of this resource, sorted by key.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Resource
impl UnwindSafe for Resource
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V