EnvVarResourceDetector class
Detects resource information from environment variables.
This detector looks for the OTEL_RESOURCE_ATTRIBUTES environment variable and parses its contents into resource attributes.
More information: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#general-sdk-configuration
- Implemented types
Constructors
- EnvVarResourceDetector([EnvironmentService? environmentService])
- Creates a new EnvVarResourceDetector with the specified environment service.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
detect(
) → Future< Resource> -
Detects resource information from the environment.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited