Class OTelAttributesConverter

java.lang.Object
org.opensearch.telemetry.OTelAttributesConverter

public final class OTelAttributesConverter extends Object
Converts Attributes to OTel Attributes
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.opentelemetry.api.common.Attributes
    convert(org.opensearch.telemetry.metrics.tags.Tags tags)
    Attribute converter.
    static io.opentelemetry.api.common.Attributes
    convert(org.opensearch.telemetry.tracing.attributes.Attributes attributes)
    Attribute converter.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • convert

      public static io.opentelemetry.api.common.Attributes convert(org.opensearch.telemetry.tracing.attributes.Attributes attributes)
      Attribute converter.
      Parameters:
      attributes - attributes
      Returns:
      otel attributes.
    • convert

      public static io.opentelemetry.api.common.Attributes convert(org.opensearch.telemetry.metrics.tags.Tags tags)
      Attribute converter.
      Parameters:
      tags - attributes
      Returns:
      otel attributes.