otel_socket_io_client 0.2.0
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_apionly, 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 foremit/on.- Local
SocketIoSemanticsenum (implementsOTelSemantic) for themessaging.operation/messaging.destination.name/messaging.destination.namespacekeys. - Error path records
error.type, callsrecordException, sets the span status toErrorbefore rethrowing. - Zone-scoped suppression via
runWithoutSocketIoClientInstrumentation().