{"library":"opentelemetry-instrumentation-ws","type":"library","category":null,"description":"OpenTelemetry instrumentation for the `ws` WebSocket library, providing automatic tracing of socket lifecycle events: opens, closes, sends, and optionally messages. Current version 0.5.0 is stable, released monthly. Differentiates from manual instrumentation by patching the `ws` module transparently, supporting both client (`WebSocket`) and server (`ws.Server`) sides, and offering hooks for custom attributes. Requires `ws@^8.5.0` as a peer dependency and the OpenTelemetry Node SDK.","language":"javascript","status":"active","version":"0.5.0","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install opentelemetry-instrumentation-ws","imports":["import { WSInstrumentation } from 'opentelemetry-instrumentation-ws'","import { registerInstrumentations } from '@opentelemetry/instrumentation'","import type { WSInstrumentationConfig } from 'opentelemetry-instrumentation-ws'"]},{"cmd":"yarn add opentelemetry-instrumentation-ws","imports":[]},{"cmd":"pnpm add opentelemetry-instrumentation-ws","imports":[]}],"homepage":"https://github.com/gadget-inc/opentelemetry-instrumentations#readme","github":"https://github.com/gadget-inc/opentelemetry-instrumentations","docs":null,"changelog":null,"pypi":null,"npm":"opentelemetry-instrumentation-ws","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}