otel_socket_io_client 0.2.0 copy "otel_socket_io_client: ^0.2.0" to clipboard
otel_socket_io_client: ^0.2.0 copied to clipboard

OpenTelemetry instrumentation for package:socket_io_client. Wraps emit calls in PRODUCER spans and on() handlers in CONSUMER spans following OTel messaging semconv.

Changelog #

0.2.0 - 2026-10-11 #

Changed #

  • Requires dartastic_opentelemetry_api >=1.0.0-rc.4 <1.0.0-rc.5.
  • Breaking: depends on dartastic_opentelemetry_api only, no longer on the SDK. The application chooses and initializes the OpenTelemetry SDK. Parameters and fields typed with SDK classes now use the API types (APITracer, APISpan, APILogger, ...); SDK instances are still accepted wherever an API type is expected.

0.1.0 - 2026-08-10 #

Added #

  • tracedSocketEmit<T>(...) — runs an emit-style invocation inside a PRODUCER-kind span with OTel messaging conventions (messaging.system=socket.io, messaging.operation=publish, messaging.destination.name=<event>).
  • tracedSocketHandler(event, handler) — wraps a Socket.IO event handler so each invocation runs inside a CONSUMER-kind span.
  • Socket.emitTraced(...) / Socket.onTraced(...) extension methods as drop-in replacements for emit / on.
  • Local SocketIoSemantics enum (implements OTelSemantic) for the messaging.operation / messaging.destination.name / messaging.destination.namespace keys.
  • Error path records error.type, calls recordException, sets the span status to Error before rethrowing.
  • Zone-scoped suppression via runWithoutSocketIoClientInstrumentation().
0
likes
160
points
104
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

OpenTelemetry instrumentation for package:socket_io_client. Wraps emit calls in PRODUCER spans and on() handlers in CONSUMER spans following OTel messaging semconv.

Homepage
Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

dartastic_opentelemetry_api, socket_io_client

More

Packages that depend on otel_socket_io_client