File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/node/src/integrations/http Expand file tree Collapse file tree 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
109109 /** @inheritdoc */
110110 public init ( ) : [ InstrumentationNodeModuleDefinition , InstrumentationNodeModuleDefinition ] {
111111 // 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
113113 let hasRegisteredHandlers = false ;
114114
115115 const onHttpServerRequestStart = ( ( _data : unknown ) => {
@@ -128,7 +128,8 @@ export class SentryHttpInstrumentation extends InstrumentationBase<SentryHttpIns
128128 } ) satisfies ChannelListener ;
129129
130130 /**
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...)˝,
132133 * instead of simply subscribing to the events once in here.
133134 * The reason for this is timing semantics: These functions are called once the http or https module is loaded.
134135 * 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