Skip to content

Commit 4ac0598

Browse files
committed
fix comment
1 parent c7b07dc commit 4ac0598

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)