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>
28 lines
1.2 KiB
Text
28 lines
1.2 KiB
Text
import { HandlerDataFetch } from '../types-hoist/instrument';
|
|
/**
|
|
* Add an instrumentation handler for when a fetch request happens.
|
|
* The handler function is called once when the request starts and once when it ends,
|
|
* which can be identified by checking if it has an `endTimestamp`.
|
|
*
|
|
* Use at your own risk, this might break without changelog notice, only used internally.
|
|
* @hidden
|
|
*/
|
|
export declare function addFetchInstrumentationHandler(handler: (data: HandlerDataFetch) => void, skipNativeFetchCheck?: boolean): void;
|
|
/**
|
|
* Add an instrumentation handler for long-lived fetch requests, like consuming server-sent events (SSE) via fetch.
|
|
* The handler will resolve the request body and emit the actual `endTimestamp`, so that the
|
|
* span can be updated accordingly.
|
|
*
|
|
* Only used internally
|
|
* @hidden
|
|
*/
|
|
export declare function addFetchEndInstrumentationHandler(handler: (data: HandlerDataFetch) => void): void;
|
|
/**
|
|
* Parses the fetch arguments to find the used Http method and the url of the request.
|
|
* Exported for tests only.
|
|
*/
|
|
export declare function parseFetchArgs(fetchArgs: unknown[]): {
|
|
method: string;
|
|
url: string;
|
|
};
|
|
//# sourceMappingURL=fetch.d.ts.map
|