Files
klz-cables.com/.pnpm-store/v10/files/cb/b8499404a46d41aab2cc9857950f83e180f4fb4a0b28d0e954cd3461c288f597f0f6a9a7b45156d823c4a0594962b7b0fe859bc7a68f4212455665c79be51e
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

52 lines
2.3 KiB
Plaintext

import type { RequestOptions } from 'node:http';
import type { Integration } from '@sentry/core';
export interface HttpIntegrationOptions {
/**
* Do not capture the request body for incoming HTTP requests to URLs where the given callback returns `true`.
* This can be useful for long running requests where the body is not needed and we want to avoid capturing it.
*
* @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the incoming request.
* @param request Contains the {@type RequestOptions} object used to make the incoming request.
*/
ignoreRequestBody?: (url: string, request: RequestOptions) => boolean;
/**
* Controls the maximum size of incoming HTTP request bodies attached to events.
*
* Available options:
* - 'none': No request bodies will be attached
* - 'small': Request bodies up to 1,000 bytes will be attached
* - 'medium': Request bodies up to 10,000 bytes will be attached (default)
* - 'always': Request bodies will always be attached
*
* Note that even with 'always' setting, bodies exceeding 1MB will never be attached
* for performance and security reasons.
*
* @default 'medium'
*/
maxRequestBodySize?: 'none' | 'small' | 'medium' | 'always';
/**
* Whether breadcrumbs should be recorded for outgoing requests.
*
* @default `true`
*/
breadcrumbs?: boolean;
/**
* Do not capture breadcrumbs or propagate trace headers for outgoing HTTP requests to URLs
* where the given callback returns `true`.
*
* @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the outgoing request.
* @param request Contains the {@type RequestOptions} object used to make the outgoing request.
*/
ignoreOutgoingRequests?: (url: string, request: RequestOptions) => boolean;
}
/**
* This integration handles incoming and outgoing HTTP requests in light mode (without OpenTelemetry).
*
* It uses Node's native diagnostics channels (Node.js 22+) for request isolation,
* trace propagation, and breadcrumb creation.
*/
export declare const httpIntegration: (options?: HttpIntegrationOptions) => Integration & {
name: "Http";
setupOnce: () => void;
};
//# sourceMappingURL=httpIntegration.d.ts.map