UNPKG

@splunk/otel

Version:

The Splunk distribution of OpenTelemetry Node Instrumentation provides a Node agent that automatically instruments your Node application to capture and report distributed traces to Splunk APM.

36 lines 1.46 kB
import { HttpDcInstrumentationConfig } from './types'; import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation'; /** * `node:http` and `node:https` instrumentation for OpenTelemetry */ export declare class HttpDcInstrumentation extends InstrumentationBase<HttpDcInstrumentationConfig> { private _headerCapture; private _oldHttpServerDurationHistogram; private _stableHttpServerDurationHistogram; private _oldHttpClientDurationHistogram; private _stableHttpClientDurationHistogram; private _semconvStability; constructor(config?: HttpDcInstrumentationConfig); protected _updateMetricInstruments(): void; private _recordServerDuration; private _recordClientDuration; setConfig(config?: HttpDcInstrumentationConfig): void; private _wrapSyncClientError; private _handleClientRequestError; init(): [InstrumentationNodeModuleDefinition]; private _getHttpInstrumentation; private _getPatchServerEmit; private _httpServerRequestStart; private _httpServerResponseFinished; private _httpClientRequestCreated; private _httpClientRequestError; private _httpClientResponseFinished; private _onServerResponseFinish; private _startHttpSpan; private _closeHttpSpan; private _callResponseHook; private _callRequestHook; private _callStartSpanHook; private _createHeaderCapture; } //# sourceMappingURL=httpdc.d.ts.map