Class OtelValues
java.lang.Object
codes.grow.packages.otelcollector.OtelValues
Converts SDK attribute maps (strings, booleans, longs, doubles, lists and nested maps) to
OpenTelemetry
Attributes: homogeneous primitive lists become array attributes, nested
maps and mixed lists become AnyValue (AttributeKey.valueKey(java.lang.String)) attributes.-
Method Summary
Modifier and TypeMethodDescriptionstatic io.opentelemetry.api.common.Attributesattributes(Map<String, ?> attributes) Converts an attribute map.static io.opentelemetry.api.common.Value<?> Converts one normalized value to an OpenTelemetryAnyValue.
-
Method Details
-
attributes
Converts an attribute map.- Parameters:
attributes- attributes (normalized withAttrValues.normalize(java.lang.Object))- Returns:
- OpenTelemetry attributes
-
value
Converts one normalized value to an OpenTelemetryAnyValue.- Parameters:
v- value- Returns:
- the value
-