{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAOa,QAAA,mBAAmB,GAAG,aAAa,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { Span } from '@opentelemetry/api';\nimport { InstrumentationConfig } from '@opentelemetry/instrumentation';\n\nexport const defaultSocketIoPath = '/socket.io/';\n\nexport interface SocketIoHookInfo {\n  moduleVersion?: string;\n  payload: any[];\n}\nexport interface SocketIoHookFunction {\n  (span: Span, hookInfo: SocketIoHookInfo): void;\n}\n\nexport interface SocketIoInstrumentationConfig extends InstrumentationConfig {\n  /** Hook for adding custom attributes before socket.io emits the event */\n  emitHook?: SocketIoHookFunction;\n  /** list of events to ignore tracing on for socket.io emits */\n  emitIgnoreEventList?: string[];\n  /** Hook for adding custom attributes before the event listener (callback) is invoked */\n  onHook?: SocketIoHookFunction;\n  /** list of events to ignore tracing on for socket.io listeners */\n  onIgnoreEventList?: string[];\n  /** Set to `true` if you want to trace socket.io reserved events (see https://socket.io/docs/v4/emit-cheatsheet/#Reserved-events) */\n  traceReserved?: boolean;\n}\n"]}