Skip to content

Commit 1b8377c

Browse files
committed
fixup! fixup! fixup! fixup! fixup! feat(http): portable node:http client instrumentation (#20393)
1 parent 8fa9818 commit 1b8377c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ import { errorMonitor } from 'node:events';
2020
import { getRequestOptions } from '../../utils/outgoingHttpRequest';
2121

2222
const FULLY_SUPPORTS_HTTP_DIAGNOSTICS_CHANNEL =
23-
(NODE_VERSION.major === 18 && NODE_VERSION.minor >= 7) ||
24-
NODE_VERSION.major >= 20;
23+
(NODE_VERSION.major === 18 && NODE_VERSION.minor >= 7) || NODE_VERSION.major >= 20;
2524

2625
export type SentryHttpInstrumentationOptions = InstrumentationConfig & {
2726
/**
@@ -170,7 +169,10 @@ export class SentryHttpInstrumentation extends InstrumentationBase<SentryHttpIns
170169
...options,
171170
spans: options.createSpansForOutgoingRequests ?? options.spans,
172171
ignoreOutgoingRequests(url, request) {
173-
return isTracingSuppressed(context.active()) || !!options.ignoreOutgoingRequests?.(url, getRequestOptions(request as ClientRequest));
172+
return (
173+
isTracingSuppressed(context.active()) ||
174+
!!options.ignoreOutgoingRequests?.(url, getRequestOptions(request as ClientRequest))
175+
);
174176
},
175177
outgoingRequestHook(span, request) {
176178
options.outgoingRequestHook?.(span, request);

0 commit comments

Comments
 (0)