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';
12
12
*/
13
13
export class NodeExperimentalSentrySpanProcessor extends SentrySpanProcessor {
14
14
/** @inheritDoc */
15
- protected _shouldCaptureSentrySpan ( span : Span ) : boolean {
15
+ protected _shouldSendSpanToSentry ( span : Span ) : boolean {
16
16
const client = getCurrentHub ( ) . getClient < NodeExperimentalClient > ( ) ;
17
17
const httpIntegration = client ? client . getIntegration ( Http ) : undefined ;
18
18
const fetchIntegration = client ? client . getIntegration ( NodeFetch ) : undefined ;
Original file line number Diff line number Diff line change 7
7
"author" : " Sentry" ,
8
8
"license" : " MIT" ,
9
9
"engines" : {
10
- "node" : " >=8 "
10
+ "node" : " >=14 "
11
11
},
12
12
"main" : " build/cjs/index.js" ,
13
13
"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
66
66
public onEnd ( span : Span ) : void {
67
67
__DEBUG_BUILD__ && logger . log ( `[Tracing] Finishing span "${ span . name } " (${ span . spanContext ( ) . spanId } )` ) ;
68
68
69
- if ( ! this . _shouldCaptureSentrySpan ( span ) ) {
69
+ if ( ! this . _shouldSendSpanToSentry ( span ) ) {
70
70
// Prevent this being called to super.onEnd(), which would pass this to the span exporter
71
71
return ;
72
72
}
@@ -80,7 +80,7 @@ export class SentrySpanProcessor extends BatchSpanProcessor implements SpanProce
80
80
* You can overwrite this in a sub class to implement custom behavior for dropping spans.
81
81
* If you return `false` here, the span will not be passed to the exporter and thus not be sent.
82
82
*/
83
- protected _shouldCaptureSentrySpan ( _span : Span ) : boolean {
83
+ protected _shouldSendSpanToSentry ( _span : Span ) : boolean {
84
84
return true ;
85
85
}
86
86
}
You can’t perform that action at this time.
0 commit comments