File tree 1 file changed +3
-2
lines changed
packages/node/src/integrations/http 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ export class SentryHttpInstrumentation extends InstrumentationBase<SentryHttpIns
109
109
/** @inheritdoc */
110
110
public init ( ) : [ InstrumentationNodeModuleDefinition , InstrumentationNodeModuleDefinition ] {
111
111
// We register handlers when either http or https is instrumented
112
- // but we only want to register them once, whichever is instrumented first
112
+ // but we only want to register them once, whichever is loaded first
113
113
let hasRegisteredHandlers = false ;
114
114
115
115
const onHttpServerRequestStart = ( ( _data : unknown ) => {
@@ -128,7 +128,8 @@ export class SentryHttpInstrumentation extends InstrumentationBase<SentryHttpIns
128
128
} ) satisfies ChannelListener ;
129
129
130
130
/**
131
- * You may be wondering why we register these diagnostics-channel listenrers in such InstrumentationNodeModuleDefinition,
131
+ * You may be wondering why we register these diagnostics-channel listeners
132
+ * in such a convoluted way (as InstrumentationNodeModuleDefinition...)˝,
132
133
* instead of simply subscribing to the events once in here.
133
134
* The reason for this is timing semantics: These functions are called once the http or https module is loaded.
134
135
* If we'd subscribe before that, there seem to be conflicts with the OTEL native instrumentation in some scenarios,
You can’t perform that action at this time.
0 commit comments