Class HostResourceContributor

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

@Incubating(since="0.5.0") public final class HostResourceContributor extends Object implements ResourceContributor
A ResourceContributor that contributes attributes about the host the application is running on, following the OpenTelemetry Semantic Conventions.

The following attributes are populated:

  • host.arch
  • host.name
  • Field Details

    • HOST_ARCH

      public static final io.opentelemetry.api.common.AttributeKey<String> HOST_ARCH
    • HOST_NAME

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

    • HostResourceContributor

      public HostResourceContributor()
  • Method Details

    • contribute

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