Class OpentelemetryExporterAttributes

java.lang.Object
org.mule.metrics.exporter.impl.OpentelemetryExporterAttributes
All Implemented Interfaces:
io.opentelemetry.api.common.Attributes

public class OpentelemetryExporterAttributes extends Object implements io.opentelemetry.api.common.Attributes
Attributes based on a Meter for otel export.
  • Constructor Details

    • OpentelemetryExporterAttributes

      public OpentelemetryExporterAttributes(org.mule.metrics.api.meter.Meter meter)
  • Method Details

    • get

      public <T> T get(io.opentelemetry.api.common.AttributeKey<T> key)
      Specified by:
      get in interface io.opentelemetry.api.common.Attributes
    • forEach

      public void forEach(BiConsumer<? super io.opentelemetry.api.common.AttributeKey<?>,? super Object> consumer)
      Specified by:
      forEach in interface io.opentelemetry.api.common.Attributes
    • size

      public int size()
      Specified by:
      size in interface io.opentelemetry.api.common.Attributes
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface io.opentelemetry.api.common.Attributes
    • asMap

      public Map<io.opentelemetry.api.common.AttributeKey<?>,Object> asMap()
      Specified by:
      asMap in interface io.opentelemetry.api.common.Attributes
    • toBuilder

      public io.opentelemetry.api.common.AttributesBuilder toBuilder()
      Specified by:
      toBuilder in interface io.opentelemetry.api.common.Attributes