[−][src]Module opentelemetry::sdk::resource
Resource
A Resource is an immutable representation of the entity producing telemetry. For example, a
process producing telemetry that is running in a container on Kubernetes has a Pod name, it is
in a namespace, and possibly is part of a Deployment which also has a name. All three of these
attributes can be included in the Resource.
The primary purpose of resources as a first-class concept in the SDK is decoupling of discovery
of resource information from exporters. This allows for independent development and easy
customization for users that need to integrate with closed source environments. When used with
distributed tracing, a resource can be associated with the Provider when it is created.
That association cannot be changed later. When associated with a Provider, all Spans
produced by any Tracer from the provider are associated with this Resource.
Structs
| IntoIter | An owned iterator over the entries of a |
| Iter | An iterator over the entries of a |
| Resource | Describes an entity about which identifying information and metadata is exposed. |