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 Details

    • CONNECTION_ID_ATTR_KEY

      public static final String CONNECTION_ID_ATTR_KEY
      OpenTelemetry attributes added to spans created for opened and closed connections.
      See Also:
    • CONNECTION_ENDPOINT_ATTR_KEY

      public static final String CONNECTION_ENDPOINT_ATTR_KEY
      See Also:
    • CONNECTION_CLIENT_ATTR_KEY

      public static final String 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:
      onConnectionOpened in interface io.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:
      onConnectionOpeningFailed in interface io.quarkus.websockets.next.runtime.spi.telemetry.WebSocketTracesInterceptor
    • onConnectionClosed

      public void onConnectionClosed(io.quarkus.websockets.next.runtime.spi.telemetry.WebSocketEndpointContext ctx)
      Specified by:
      onConnectionClosed in interface io.quarkus.websockets.next.runtime.spi.telemetry.WebSocketTracesInterceptor
    • onConnectionClosingFailed

      public void onConnectionClosingFailed(Throwable throwable, io.quarkus.websockets.next.runtime.spi.telemetry.WebSocketEndpointContext ctx)
      Specified by:
      onConnectionClosingFailed in interface io.quarkus.websockets.next.runtime.spi.telemetry.WebSocketTracesInterceptor