Class WebSocketTracesInterceptorImpl
java.lang.Object
io.quarkus.opentelemetry.runtime.tracing.instrumentation.websockets.WebSocketTracesInterceptorImpl
- All Implemented Interfaces:
io.quarkus.websockets.next.runtime.spi.telemetry.WebSocketTracesInterceptor
@Dependent
public final class WebSocketTracesInterceptorImpl
extends Object
implements io.quarkus.websockets.next.runtime.spi.telemetry.WebSocketTracesInterceptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonConnectionClosed(io.quarkus.websockets.next.runtime.spi.telemetry.WebSocketEndpointContext ctx) voidonConnectionClosingFailed(Throwable throwable, io.quarkus.websockets.next.runtime.spi.telemetry.WebSocketEndpointContext ctx) onConnectionOpened(String route, io.quarkus.websockets.next.runtime.spi.telemetry.EndpointKind endpointKind) voidonConnectionOpeningFailed(Throwable cause, String route, io.quarkus.websockets.next.runtime.spi.telemetry.EndpointKind endpointKind, Map<String, Object> connectionOpenedContext)
-
Field Details
-
CONNECTION_ID_ATTR_KEY
OpenTelemetry attributes added to spans created for opened and closed connections.- See Also:
-
CONNECTION_ENDPOINT_ATTR_KEY
- See Also:
-
CONNECTION_CLIENT_ATTR_KEY
- See Also:
-
-
Constructor Details
-
WebSocketTracesInterceptorImpl
WebSocketTracesInterceptorImpl(io.opentelemetry.api.trace.Tracer tracer)
-
-
Method Details
-
onConnectionOpened
public Map<String,Object> onConnectionOpened(String route, io.quarkus.websockets.next.runtime.spi.telemetry.EndpointKind endpointKind) - Specified by:
onConnectionOpenedin interfaceio.quarkus.websockets.next.runtime.spi.telemetry.WebSocketTracesInterceptor
-
onConnectionOpeningFailed
public void onConnectionOpeningFailed(Throwable cause, String route, io.quarkus.websockets.next.runtime.spi.telemetry.EndpointKind endpointKind, Map<String, Object> connectionOpenedContext) - Specified by:
onConnectionOpeningFailedin interfaceio.quarkus.websockets.next.runtime.spi.telemetry.WebSocketTracesInterceptor
-
onConnectionClosed
public void onConnectionClosed(io.quarkus.websockets.next.runtime.spi.telemetry.WebSocketEndpointContext ctx) - Specified by:
onConnectionClosedin interfaceio.quarkus.websockets.next.runtime.spi.telemetry.WebSocketTracesInterceptor
-
onConnectionClosingFailed
public void onConnectionClosingFailed(Throwable throwable, io.quarkus.websockets.next.runtime.spi.telemetry.WebSocketEndpointContext ctx) - Specified by:
onConnectionClosingFailedin interfaceio.quarkus.websockets.next.runtime.spi.telemetry.WebSocketTracesInterceptor
-