Class TracesConnectionInterceptor
java.lang.Object
io.quarkus.websockets.next.runtime.telemetry.TracesConnectionInterceptor
- All Implemented Interfaces:
ConnectionInterceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.websockets.next.runtime.telemetry.ConnectionInterceptor
ConnectionInterceptor.CompositeConnectionInterceptor -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTracesConnectionInterceptor(io.opentelemetry.api.trace.Tracer tracer, io.opentelemetry.api.trace.SpanKind spanKind, String path) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidconnectionOpeningFailed(Throwable cause) Way to pass a context betweenConnectionInterceptorand telemetry endpoint decorators.
-
Field Details
-
CONNECTION_OPENED_SPAN_CTX
- See Also:
-
-
Constructor Details
-
TracesConnectionInterceptor
TracesConnectionInterceptor(io.opentelemetry.api.trace.Tracer tracer, io.opentelemetry.api.trace.SpanKind spanKind, String path)
-
-
Method Details
-
connectionOpened
public void connectionOpened()- Specified by:
connectionOpenedin interfaceConnectionInterceptor
-
connectionOpeningFailed
- Specified by:
connectionOpeningFailedin interfaceConnectionInterceptor
-
getContextData
Description copied from interface:ConnectionInterceptorWay to pass a context betweenConnectionInterceptorand telemetry endpoint decorators.- Specified by:
getContextDatain interfaceConnectionInterceptor- Returns:
- unmodifiable map passed to decorators as
TelemetryWebSocketEndpointContext.contextData()
-