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 {
101
101
disableIncomingRequestSpans ?: boolean ;
102
102
}
103
103
104
- const instrumentSentryHttp = generateInstrumentOnce < SentryHttpInstrumentationOptions > (
104
+ export const instrumentSentryHttp = generateInstrumentOnce < SentryHttpInstrumentationOptions > (
105
105
`${ INTEGRATION_NAME } .sentry` ,
106
106
options => {
107
107
return new SentryHttpInstrumentation ( options ) ;
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ interface HttpOptions {
136
136
} ;
137
137
}
138
138
139
- const instrumentSentryHttp = generateInstrumentOnce < SentryHttpInstrumentationOptions > (
139
+ export const instrumentSentryHttp = generateInstrumentOnce < SentryHttpInstrumentationOptions > (
140
140
`${ INTEGRATION_NAME } .sentry` ,
141
141
options => {
142
142
return new SentryHttpInstrumentation ( options ) ;
Original file line number Diff line number Diff line change 1
1
import type { Integration } from '@sentry/core' ;
2
- import { instrumentOtelHttp } from '../http' ;
2
+ import { instrumentOtelHttp , instrumentSentryHttp } from '../http' ;
3
3
import { amqplibIntegration , instrumentAmqplib } from './amqplib' ;
4
4
import { connectIntegration , instrumentConnect } from './connect' ;
5
5
import { expressIntegration , instrumentExpress } from './express' ;
@@ -59,6 +59,7 @@ export function getAutoPerformanceIntegrations(): Integration[] {
59
59
// eslint-disable-next-line @typescript-eslint/no-explicit-any
60
60
export function getOpenTelemetryInstrumentationToPreload ( ) : ( ( ( options ?: any ) => void ) & { id : string } ) [ ] {
61
61
return [
62
+ instrumentSentryHttp ,
62
63
instrumentOtelHttp ,
63
64
instrumentExpress ,
64
65
instrumentConnect ,
You can’t perform that action at this time.
0 commit comments