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.description
  • process.runtime.name
  • process.runtime.version
  • Field Details

    • PROCESS_RUNTIME_DESCRIPTION

      public static final io.opentelemetry.api.common.AttributeKey<String> PROCESS_RUNTIME_DESCRIPTION
    • PROCESS_RUNTIME_NAME

      public static final io.opentelemetry.api.common.AttributeKey<String> PROCESS_RUNTIME_NAME
    • PROCESS_RUNTIME_VERSION

      public static final io.opentelemetry.api.common.AttributeKey<String> PROCESS_RUNTIME_VERSION
  • Constructor Details

    • JavaResourceContributor

      public JavaResourceContributor()
  • Method Details

    • contribute

      public void contribute(io.opentelemetry.sdk.resources.ResourceBuilder builder)
      Specified by:
      contribute in interface ResourceContributor