Class OtlpExemplarContext
java.lang.Object
io.micrometer.registry.otlp.OtlpExemplarContext
Context that contains the necessary information to create an exemplar.
- Since:
- 1.17.0
-
Constructor Summary
ConstructorsConstructorDescriptionOtlpExemplarContext(@Nullable String traceId, @Nullable String spanId, Iterable<io.micrometer.common.KeyValue> keyValues) OtlpExemplarContext(String traceId, String spanId) -
Method Summary
-
Constructor Details
-
OtlpExemplarContext
-
OtlpExemplarContext
public OtlpExemplarContext(@Nullable String traceId, @Nullable String spanId, Iterable<io.micrometer.common.KeyValue> keyValues) - Parameters:
traceId- the TraceId of the Span, it must be represented as a case-insensitive hex-encoded stringspanId- the SpanId of the Span, it must be represented as a case-insensitive hex-encoded stringkeyValues- arbitrary key-value pairs to attach to the exemplar- See Also:
-
-
Method Details
-
getTraceId
- Returns:
- TraceId of the Span, represented by a case-insensitive hex-encoded string
- See Also:
-
getSpanId
- Returns:
- SpanId of the Span, represented by a case-insensitive hex-encoded string
- See Also:
-
getKeyValues
- Returns:
- key-value pairs to be attached to the exemplar
- See Also:
-