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

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

The following attributes are populated:

  • os.description
  • os.name
  • os.type
  • os.version
  • Field Details

    • OS_DESCRIPTION

      public static final io.opentelemetry.api.common.AttributeKey<String> OS_DESCRIPTION
    • OS_NAME

      public static final io.opentelemetry.api.common.AttributeKey<String> OS_NAME
    • OS_TYPE

      public static final io.opentelemetry.api.common.AttributeKey<String> OS_TYPE
    • OS_VERSION

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

    • OsResourceContributor

      public OsResourceContributor()
  • Method Details

    • contribute

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