Class EnvironmentResource
java.lang.Object
io.opentelemetry.sdk.autoconfigure.EnvironmentResource
Deprecated.
Factory for a
Resource which parses the standard "otel.resource.attributes" system
property or OTEL_RESOURCE_ATTRIBUTES environment variable. Will also use
OTEL_SERVICE_NAME/otel.service.name to specifically set the service name.-
Method Summary
Modifier and TypeMethodDescriptionstatic io.opentelemetry.sdk.resources.Resourceget()Deprecated.Use the information retrievable fromAutoConfiguredOpenTelemetrySdk.getResource().
-
Method Details
-
get
Deprecated.Use the information retrievable fromAutoConfiguredOpenTelemetrySdk.getResource().Returns aResourcewhich contains information from the standard "otel.resource.attributes"/"otel.service.name" system properties or OTEL_RESOURCE_ATTRIBUTES/OTEL_SERVICE_NAME environment variables.
-
AutoConfiguredOpenTelemetrySdk.getResource().