Files
klz-cables.com/.pnpm-store/v10/files/77/78a9154eacf62ed5b034947f0e99f74ddd9d9acbd82bff8115d38b36af450f22936446ed99bb0a500d8778db9b891a75ab17c51849ca4bc9a168b5fc7ccd9d
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

53 lines
2.3 KiB
Plaintext

import { RequestOptions } from 'node:http';
import { 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