Class AtmosphereTracing

java.lang.Object
org.atmosphere.cpr.AtmosphereInterceptorAdapter
org.atmosphere.metrics.AtmosphereTracing
All Implemented Interfaces:
AtmosphereInterceptor, AtmosphereConfigAware, InvokationOrder

public class AtmosphereTracing extends AtmosphereInterceptorAdapter
OpenTelemetry tracing interceptor for Atmosphere requests.

Creates a trace span for each incoming request covering the full lifecycle from inspect through to disconnect. Requires io.opentelemetry:opentelemetry-api on the classpath (optional dependency).

Usage


 OpenTelemetry otel = GlobalOpenTelemetry.get(); // or your configured instance
 framework.interceptor(new AtmosphereTracing(otel));
 

Span attributes

  • atmosphere.resource.uuid — the resource UUID
  • atmosphere.transport — transport type (WEBSOCKET, SSE, etc.)
  • atmosphere.action — the action result (CONTINUE, SUSPEND, etc.)
  • atmosphere.broadcaster — the broadcaster ID
  • atmosphere.disconnect.reason — reason for disconnect (if applicable)
Since:
4.0