Class JavaResourceContributor
java.lang.Object
io.arconia.opentelemetry.autoconfigure.resource.contributor.JavaResourceContributor
- All Implemented Interfaces:
ResourceContributor
@Incubating(since="0.5.0")
public final class JavaResourceContributor
extends Object
implements ResourceContributor
A
ResourceContributor that contributes attributes about the Java process runtime,
following the OpenTelemetry Semantic Conventions.
The following attributes are populated:
process.runtime.descriptionprocess.runtime.nameprocess.runtime.version
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontribute(io.opentelemetry.sdk.resources.ResourceBuilder builder)
-
Field Details
-
PROCESS_RUNTIME_DESCRIPTION
-
PROCESS_RUNTIME_NAME
-
PROCESS_RUNTIME_VERSION
-
-
Constructor Details
-
JavaResourceContributor
public JavaResourceContributor()
-
-
Method Details
-
contribute
public void contribute(io.opentelemetry.sdk.resources.ResourceBuilder builder) - Specified by:
contributein interfaceResourceContributor
-