Module opentelemetry_sdk::resource

source ·
Expand description

Representations of entities producing telemetry.

A Resource is an immutable representation of the entity producing telemetry as attributes. 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. Note that there are certain “standard attributes” that have prescribed meanings.

§Resource detectors

ResourceDetectors are used to detect resource from runtime or environmental variables. The following are provided by default with this SDK.

The OS and Process resource detectors are packaged separately in the opentelemetry-resource-detector crate.

Structs§

Traits§