File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
node-experimental/src/sdk Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import type { NodeExperimentalClient } from '../types';
1212 */
1313export 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 ;
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments