Module opentelemetry::source · [−]
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.
ResourceDetectors are used to detect resource from runtime or
environmental variables. The following are provided by default with this
EnvResourceDetector- detect resource from environmental variables.
OsResourceDetector- detect OS from runtime.
ProcessResourceDetector- detect process information.
Resource detector implements ResourceDetector and is used to extract general SDK configuration from environment.
An owned iterator over the entries of a
An iterator over the entries of a
Detect runtime operating system information.
Detect process information.
An immutable representation of the entity producing telemetry as attributes.
There are the attributes which MUST be provided by the SDK as specified in the Resource SDK specification. This detector detect those attributes and if the attribute cannot be detected, use the default value.
ResourceDetector detects OpenTelemetry resource information