File tree Expand file tree Collapse file tree 4 files changed +6
-10
lines changed
remix/src/server/integrations
sveltekit/src/server/integrations Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1- export { httpIntegration } from './integrations/http' ;
1+ export { httpIntegration , type HttpOptions as HttpIntegrationOptions } from './integrations/http' ;
22export { nativeNodeFetchIntegration } from './integrations/node-fetch' ;
33export { fsIntegration } from './integrations/fs' ;
44export { expressIntegration , expressErrorHandler , setupExpressErrorHandler } from './integrations/tracing/express' ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const INTEGRATION_NAME = 'Http';
2020
2121const INSTRUMENTATION_NAME = '@opentelemetry_sentry-patched/instrumentation-http' ;
2222
23- interface HttpOptions {
23+ export interface HttpOptions {
2424 /**
2525 * Whether breadcrumbs should be recorded for outgoing requests.
2626 * Defaults to true
Original file line number Diff line number Diff line change 11import type { IntegrationFn } from '@sentry/core' ;
2- import { httpIntegration as originalHttpIntegration } from '@sentry/node' ;
3-
4- type HttpOptions = Parameters < typeof originalHttpIntegration > [ 0 ] ;
2+ import { httpIntegration as originalHttpIntegration , type HttpIntegrationOptions } from '@sentry/node' ;
53
64/**
75 * The http integration instruments Node's internal http and https modules.
86 * It creates breadcrumbs and spans for outgoing HTTP requests which will be attached to the currently active span.
97 */
10- export const httpIntegration = ( ( options : HttpOptions = { } ) => {
8+ export const httpIntegration = ( ( options : HttpIntegrationOptions = { } ) => {
119 return originalHttpIntegration ( {
1210 ...options ,
1311 // We disable incoming request spans here, because otherwise we'd end up with duplicate spans.
Original file line number Diff line number Diff line change 11import type { IntegrationFn } from '@sentry/core' ;
2- import { httpIntegration as originalHttpIntegration } from '@sentry/node' ;
3-
4- type HttpOptions = Parameters < typeof originalHttpIntegration > [ 0 ] ;
2+ import { httpIntegration as originalHttpIntegration , type HttpIntegrationOptions } from '@sentry/node' ;
53
64/**
75 * The http integration instruments Node's internal http and https modules.
@@ -12,7 +10,7 @@ type HttpOptions = Parameters<typeof originalHttpIntegration>[0];
1210 * (You likely don't need this!)
1311 *
1412 */
15- export const httpIntegration = ( ( options : HttpOptions = { } ) => {
13+ export const httpIntegration = ( ( options : HttpIntegrationOptions = { } ) => {
1614 /*
1715 * This is a slightly modified version of the original httpIntegration: We avoid creating
1816 * incoming request spans because:
You can’t perform that action at this time.
0 commit comments