Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e3b58cf

Browse files
committed
fix preload
1 parent 007ce9b commit e3b58cf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

‎packages/node-core/src/integrations/http/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ interface HttpOptions {
101101
disableIncomingRequestSpans?: boolean;
102102
}
103103

104-
const instrumentSentryHttp = generateInstrumentOnce<SentryHttpInstrumentationOptions>(
104+
exportconst instrumentSentryHttp = generateInstrumentOnce<SentryHttpInstrumentationOptions>(
105105
`${INTEGRATION_NAME}.sentry`,
106106
options => {
107107
return new SentryHttpInstrumentation(options);

‎packages/node/src/integrations/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ interface HttpOptions {
136136
};
137137
}
138138

139-
const instrumentSentryHttp = generateInstrumentOnce<SentryHttpInstrumentationOptions>(
139+
exportconst instrumentSentryHttp = generateInstrumentOnce<SentryHttpInstrumentationOptions>(
140140
`${INTEGRATION_NAME}.sentry`,
141141
options => {
142142
return new SentryHttpInstrumentation(options);

‎packages/node/src/integrations/tracing/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Integration } from '@sentry/core';
2-
import { instrumentOtelHttp } from '../http';
2+
import { instrumentOtelHttp,instrumentSentryHttp } from '../http';
33
import { amqplibIntegration, instrumentAmqplib } from './amqplib';
44
import { connectIntegration, instrumentConnect } from './connect';
55
import { expressIntegration, instrumentExpress } from './express';
@@ -59,6 +59,7 @@ export function getAutoPerformanceIntegrations(): Integration[] {
5959
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6060
export function getOpenTelemetryInstrumentationToPreload(): (((options?: any) => void) & { id: string })[] {
6161
return [
62+
instrumentSentryHttp,
6263
instrumentOtelHttp,
6364
instrumentExpress,
6465
instrumentConnect,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /