@opentelemetry/instrumentation-undici
Version:
OpenTelemetry instrumentation for `undici` http client and Node.js fetch()
21 lines • 767 B
TypeScript
import { InstrumentationBase } from '@opentelemetry/instrumentation';
import { UndiciInstrumentationConfig } from './types';
export declare class UndiciInstrumentation extends InstrumentationBase<UndiciInstrumentationConfig> {
private _channelSubs;
private _recordFromReq;
private _httpClientDurationHistogram;
constructor(config?: UndiciInstrumentationConfig);
protected init(): undefined;
disable(): void;
enable(): void;
protected _updateMetricInstruments(): void;
private subscribeToChannel;
private onRequestCreated;
private onRequestHeaders;
private onResponseHeaders;
private onDone;
private onError;
private recordRequestDuration;
private getRequestMethod;
}
//# sourceMappingURL=undici.d.ts.map