Class OpenTelemetryService
java.lang.Object
org.infinispan.server.core.telemetry.OpenTelemetryService
- All Implemented Interfaces:
io.opentelemetry.context.propagation.TextMapGetter<InfinispanSpanContext>
,InfinispanTelemetry
public class OpenTelemetryService
extends Object
implements InfinispanTelemetry, io.opentelemetry.context.propagation.TextMapGetter<InfinispanSpanContext>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(InfinispanSpanContext ctx, String key) void
setNodeName
(String nodeName) <T> InfinispanSpan
<T> startTraceRequest
(String operationName, InfinispanSpanAttributes attributes) <T> InfinispanSpan
<T> startTraceRequest
(String operationName, InfinispanSpanAttributes attributes, InfinispanSpanContext context)
-
Constructor Details
-
OpenTelemetryService
public OpenTelemetryService(io.opentelemetry.api.OpenTelemetry openTelemetry)
-
-
Method Details
-
startTraceRequest
public <T> InfinispanSpan<T> startTraceRequest(String operationName, InfinispanSpanAttributes attributes) - Specified by:
startTraceRequest
in interfaceInfinispanTelemetry
-
startTraceRequest
public <T> InfinispanSpan<T> startTraceRequest(String operationName, InfinispanSpanAttributes attributes, InfinispanSpanContext context) - Specified by:
startTraceRequest
in interfaceInfinispanTelemetry
-
setNodeName
- Specified by:
setNodeName
in interfaceInfinispanTelemetry
-
keys
- Specified by:
keys
in interfaceio.opentelemetry.context.propagation.TextMapGetter<InfinispanSpanContext>
-
get
- Specified by:
get
in interfaceio.opentelemetry.context.propagation.TextMapGetter<InfinispanSpanContext>
-