otel_socket_io_client 0.1.0
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 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().