Rocky_Mountain_Vending/.pnpm-store/v10/files/e1/9cfad6b2970454a80c9ea2e95bbc8dfef8c81435a8234f6836c28588c7e2efacdb007e09309fb551c12d61e2ca1bd5dca089fb383228361c2825c76ee4bd21
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

56 lines
2.3 KiB
Text

import { InstrumentationConfig } from '@opentelemetry/instrumentation';
import { InstrumentationBase } from '@opentelemetry/instrumentation';
export type SentryNodeFetchInstrumentationOptions = InstrumentationConfig & {
/**
* Whether breadcrumbs should be recorded for requests.
*
* @default `true`
*/
breadcrumbs?: boolean;
/**
* Do not capture breadcrumbs or inject headers for outgoing fetch requests to URLs where the given callback returns `true`.
* The same option can be passed to the top-level httpIntegration where it controls both, breadcrumb and
* span creation.
*
* @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the outgoing request.
*/
ignoreOutgoingRequests?: (url: string) => boolean;
};
/**
* This custom node-fetch instrumentation is used to instrument outgoing fetch requests.
* It does not emit any spans.
*
* The reason this is isolated from the OpenTelemetry instrumentation is that users may overwrite this,
* which would lead to Sentry not working as expected.
*
* This is heavily inspired & adapted from:
* https://github.com/open-telemetry/opentelemetry-js-contrib/blob/28e209a9da36bc4e1f8c2b0db7360170ed46cb80/plugins/node/instrumentation-undici/src/undici.ts
*/
export declare class SentryNodeFetchInstrumentation extends InstrumentationBase<SentryNodeFetchInstrumentationOptions> {
private _channelSubs;
private _propagationDecisionMap;
private _ignoreOutgoingRequestsMap;
constructor(config?: SentryNodeFetchInstrumentationOptions);
/** No need to instrument files/modules. */
init(): void;
/** Disable the instrumentation. */
disable(): void;
/** Enable the instrumentation. */
enable(): void;
/**
* This method is called when a request is created.
* You can still mutate the request here before it is sent.
*/
private _onRequestCreated;
/**
* This method is called when a response is received.
*/
private _onResponseHeaders;
/** Subscribe to a diagnostics channel. */
private _subscribeToChannel;
/**
* Check if the given outgoing request should be ignored.
*/
private _shouldIgnoreOutgoingRequest;
}
//# sourceMappingURL=SentryNodeFetchInstrumentation.d.ts.map