(callback: () => T)
| 71 | |
| 72 | // In contrast to the browser, we can rely on async context isolation here |
| 73 | function suppressTracing<T>(callback: () => T): T { |
| 74 | return withScope(scope => { |
| 75 | scope.setSDKProcessingMetadata({ __SENTRY_SUPPRESS_TRACING__: true }); |
| 76 | return callback(); |
| 77 | }); |
| 78 | } |
| 79 | |
| 80 | setAsyncContextStrategy({ |
| 81 | suppressTracing, |
nothing calls this directly
no test coverage detected