Class TelemetrySupport
java.lang.Object
io.quarkus.websockets.next.runtime.telemetry.TelemetrySupport
Integrates traces into WebSockets with
WebSocketEndpoint decorator.-
Constructor Summary
ConstructorsConstructorDescriptionTelemetrySupport(ConnectionInterceptor connectionInterceptor, SendingInterceptor sendingInterceptor, ErrorInterceptor errorInterceptor) -
Method Summary
Modifier and TypeMethodDescriptionvoidCollects telemetry when WebSocket connection is opened.voidconnectionOpeningFailed(Throwable throwable) Collects telemetry when WebSocket connection opening failed.abstract WebSocketEndpointdecorate(WebSocketEndpoint endpoint, WebSocketConnectionBase connection) boolean
-
Constructor Details
-
TelemetrySupport
TelemetrySupport(ConnectionInterceptor connectionInterceptor, SendingInterceptor sendingInterceptor, ErrorInterceptor errorInterceptor)
-
-
Method Details
-
decorate
public abstract WebSocketEndpoint decorate(WebSocketEndpoint endpoint, WebSocketConnectionBase connection) -
interceptConnection
public boolean interceptConnection() -
connectionOpened
public void connectionOpened()Collects telemetry when WebSocket connection is opened. Only supported wheninterceptConnection(). -
connectionOpeningFailed
Collects telemetry when WebSocket connection opening failed. Only supported wheninterceptConnection(). -
getSendingInterceptor
-
getErrorInterceptor
-
getContextData
-