Class OtelAttributes

java.lang.Object
codes.grow.packages.datadogapm.tracing.OtelAttributes

public final class OtelAttributes extends Object
Converts SDK attribute values (AttrValue: String, numbers, Boolean, lists, maps) into OpenTelemetry Attributes. Integral numbers become longs, other numbers doubles; lists of one primitive kind become array attributes, mixed lists string arrays; nested maps are flattened with dotted keys ({"http": {"method": "GET"}} → http.method); null values are skipped.
  • Method Details

    • from

      public static io.opentelemetry.api.common.Attributes from(Map<String,?> attributes)
      Converts a map.
      Parameters:
      attributes - attribute values (may be null)
      Returns:
      OpenTelemetry attributes