Skip to content

Commit 63f0d51

Browse files
committed
PR feedback
1 parent 1266bc1 commit 63f0d51

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/node-experimental/src/sdk/spanProcessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type { NodeExperimentalClient } from '../types';
1212
*/
1313
export class NodeExperimentalSentrySpanProcessor extends SentrySpanProcessor {
1414
/** @inheritDoc */
15-
protected _shouldCaptureSentrySpan(span: Span): boolean {
15+
protected _shouldSendSpanToSentry(span: Span): boolean {
1616
const client = getCurrentHub().getClient<NodeExperimentalClient>();
1717
const httpIntegration = client ? client.getIntegration(Http) : undefined;
1818
const fetchIntegration = client ? client.getIntegration(NodeFetch) : undefined;

packages/opentelemetry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"author": "Sentry",
88
"license": "MIT",
99
"engines": {
10-
"node": ">=8"
10+
"node": ">=14"
1111
},
1212
"main": "build/cjs/index.js",
1313
"module": "build/esm/index.js",

packages/opentelemetry/src/spanProcessor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class SentrySpanProcessor extends BatchSpanProcessor implements SpanProce
6666
public onEnd(span: Span): void {
6767
__DEBUG_BUILD__ && logger.log(`[Tracing] Finishing span "${span.name}" (${span.spanContext().spanId})`);
6868

69-
if (!this._shouldCaptureSentrySpan(span)) {
69+
if (!this._shouldSendSpanToSentry(span)) {
7070
// Prevent this being called to super.onEnd(), which would pass this to the span exporter
7171
return;
7272
}
@@ -80,7 +80,7 @@ export class SentrySpanProcessor extends BatchSpanProcessor implements SpanProce
8080
* You can overwrite this in a sub class to implement custom behavior for dropping spans.
8181
* If you return `false` here, the span will not be passed to the exporter and thus not be sent.
8282
*/
83-
protected _shouldCaptureSentrySpan(_span: Span): boolean {
83+
protected _shouldSendSpanToSentry(_span: Span): boolean {
8484
return true;
8585
}
8686
}

0 commit comments

Comments
 (0)