Class | Description |
---|---|
Resource |
Resource represents a resource, which capture identifying information about the entities
for which signals (stats or traces) are reported. |
ResourceAttributes |
Provides constants for resource semantic conventions defined by the OpenTelemetry specification.
|
ResourceProvider |
ResourceProvider is a service provider for additional
Resource s. |
ResourcesConfig |
Class that holds global resources parameters.
|
ResourcesConfig.Builder |
Builder for
ResourcesConfig . |
The resources library primarily defines a type "Resource" that captures information about the entity for which stats or traces are recorded. For example, metrics exposed by a Kubernetes container can be linked to a resource that specifies the cluster, namespace, pod, and container name.
One environment variables is used to populate resource information:
Attribute keys, and attribute values MUST contain only printable ASCII (codes between 32 and 126, inclusive) and less than 256 characters. Type and attribute keys MUST have a length greater than zero. They SHOULD start with a domain name and separate hierarchies with / characters, e.g. k8s.io/namespace/name.
One environment variable is used to disable resource provider implementations that are found on the classpath: