Class EnvironmentResource
- java.lang.Object
-
- io.opentelemetry.sdk.autoconfigure.EnvironmentResource
-
public final class EnvironmentResource extends Object
Factory for aResource
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.opentelemetry.sdk.resources.Resource
get()
Returns aResource
which contains information from the standard "otel.resource.attributes"/"otel.service.name" system properties or OTEL_RESOURCE_ATTRIBUTES/OTEL_SERVICE_NAME environment variables.
-