File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
node-core/src/integrations/http Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ interface HttpOptions {
101101 disableIncomingRequestSpans ?: boolean ;
102102}
103103
104- const instrumentSentryHttp = generateInstrumentOnce < SentryHttpInstrumentationOptions > (
104+ export const instrumentSentryHttp = generateInstrumentOnce < SentryHttpInstrumentationOptions > (
105105 `${ INTEGRATION_NAME } .sentry` ,
106106 options => {
107107 return new SentryHttpInstrumentation ( options ) ;
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ interface HttpOptions {
136136 } ;
137137}
138138
139- const instrumentSentryHttp = generateInstrumentOnce < SentryHttpInstrumentationOptions > (
139+ export const instrumentSentryHttp = generateInstrumentOnce < SentryHttpInstrumentationOptions > (
140140 `${ INTEGRATION_NAME } .sentry` ,
141141 options => {
142142 return new SentryHttpInstrumentation ( options ) ;
Original file line number Diff line number Diff line change 11import type { Integration } from '@sentry/core' ;
2- import { instrumentOtelHttp } from '../http' ;
2+ import { instrumentOtelHttp , instrumentSentryHttp } from '../http' ;
33import { amqplibIntegration , instrumentAmqplib } from './amqplib' ;
44import { connectIntegration , instrumentConnect } from './connect' ;
55import { expressIntegration , instrumentExpress } from './express' ;
@@ -59,6 +59,7 @@ export function getAutoPerformanceIntegrations(): Integration[] {
5959// eslint-disable-next-line @typescript-eslint/no-explicit-any
6060export function getOpenTelemetryInstrumentationToPreload ( ) : ( ( ( options ?: any ) => void ) & { id : string } ) [ ] {
6161 return [
62+ instrumentSentryHttp ,
6263 instrumentOtelHttp ,
6364 instrumentExpress ,
6465 instrumentConnect ,
You can’t perform that action at this time.
0 commit comments