EnvironmentDetector implements ResourceDetector
Read onlyYes
FinalYes
OTEL_SERVICE_NAME wins over service.name in OTEL_RESOURCE_ATTRIBUTES.
Interfaces
- ResourceDetector
- Return an empty Resource when nothing is detected.
Methods
Methods
detect()
Detect resource attributes from the environment.
public
detect() : Resource