Class ProcessResourceContributor

java.lang.Object
io.arconia.opentelemetry.autoconfigure.resource.contributor.ProcessResourceContributor
All Implemented Interfaces:
ResourceContributor

@Incubating(since="0.5.0") public final class ProcessResourceContributor extends Object implements ResourceContributor
A ResourceContributor that contributes attributes about the Java process, following the OpenTelemetry Semantic Conventions.

The following attributes are populated:

  • process.owner
  • process.parent_pid
  • process.pid
  • Field Details

    • PROCESS_OWNER

      public static final io.opentelemetry.api.common.AttributeKey<String> PROCESS_OWNER
    • PROCESS_PARENT_PID

      public static final io.opentelemetry.api.common.AttributeKey<Long> PROCESS_PARENT_PID
    • PROCESS_PID

      public static final io.opentelemetry.api.common.AttributeKey<Long> PROCESS_PID
  • Constructor Details

    • ProcessResourceContributor

      public ProcessResourceContributor()
  • Method Details

    • contribute

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