otel_socket_io_client 0.1.0 copy "otel_socket_io_client: ^0.1.0" to clipboard
otel_socket_io_client: ^0.1.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.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
67
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, dartastic_opentelemetry_api, socket_io_client

More

Packages that depend on otel_socket_io_client