Class WebSocketTracesInterceptorImpl
java.lang.Object
io.quarkus.opentelemetry.runtime.tracing.intrumentation.websockets.WebSocketTracesInterceptorImpl
- All Implemented Interfaces:
WebSocketTracesInterceptor
@Dependent
public final class WebSocketTracesInterceptorImpl
extends Object
implements WebSocketTracesInterceptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidonConnectionClosingFailed(Throwable throwable, WebSocketEndpointContext ctx) onConnectionOpened(String route, EndpointKind endpointKind) voidonConnectionOpeningFailed(Throwable cause, String route, 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
- Specified by:
onConnectionOpenedin interfaceWebSocketTracesInterceptor
-
onConnectionOpeningFailed
public void onConnectionOpeningFailed(Throwable cause, String route, EndpointKind endpointKind, Map<String, Object> connectionOpenedContext) - Specified by:
onConnectionOpeningFailedin interfaceWebSocketTracesInterceptor
-
onConnectionClosed
- Specified by:
onConnectionClosedin interfaceWebSocketTracesInterceptor
-
onConnectionClosingFailed
- Specified by:
onConnectionClosingFailedin interfaceWebSocketTracesInterceptor
-