Files
klz-cables.com/.pnpm-store/v10/files/7c/80530dc203d0a9a64c94a032e81abeafc4934767a62eb3efb47bf682c2d7e1ad542d17a0caba3c9335e49e6a0018d37eb5c826eb5e666857c14b724edaac86
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

63 lines
2.5 KiB
Plaintext

import { HttpInstrumentationConfig } from './types';
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
/**
* `node:http` and `node:https` instrumentation for OpenTelemetry
*/
export declare class HttpInstrumentation extends InstrumentationBase<HttpInstrumentationConfig> {
/** keep track on spans not ended */
private readonly _spanNotEnded;
private _headerCapture;
private _oldHttpServerDurationHistogram;
private _stableHttpServerDurationHistogram;
private _oldHttpClientDurationHistogram;
private _stableHttpClientDurationHistogram;
private _semconvStability;
constructor(config?: HttpInstrumentationConfig);
protected _updateMetricInstruments(): void;
private _recordServerDuration;
private _recordClientDuration;
setConfig(config?: HttpInstrumentationConfig): void;
init(): [
InstrumentationNodeModuleDefinition,
InstrumentationNodeModuleDefinition
];
private _getHttpInstrumentation;
private _getHttpsInstrumentation;
/**
* Creates spans for incoming requests, restoring spans' context if applied.
*/
private _getPatchIncomingRequestFunction;
/**
* Creates spans for outgoing requests, sending spans' context for distributed
* tracing.
*/
private _getPatchOutgoingRequestFunction;
private _getPatchOutgoingGetFunction;
/** Patches HTTPS outgoing requests */
private _getPatchHttpsOutgoingRequestFunction;
private _setDefaultOptions;
/** Patches HTTPS outgoing get requests */
private _getPatchHttpsOutgoingGetFunction;
/**
* Attach event listeners to a client request to end span and add span attributes.
*
* @param request The original request object.
* @param span representing the current operation
* @param startTime representing the start time of the request to calculate duration in Metric
* @param oldMetricAttributes metric attributes for old semantic conventions
* @param stableMetricAttributes metric attributes for new semantic conventions
*/
private _traceClientRequest;
private _incomingRequestFunction;
private _outgoingRequestFunction;
private _onServerResponseFinish;
private _onOutgoingRequestError;
private _onServerResponseError;
private _startHttpSpan;
private _closeHttpSpan;
private _callResponseHook;
private _callRequestHook;
private _callStartSpanHook;
private _createHeaderCapture;
}
//# sourceMappingURL=http.d.ts.map