(callback: () => T)
| 79 | |
| 80 | // In contrast to the browser, we can rely on async context isolation here |
| 81 | function suppressTracing<T>(callback: () => T): T { |
| 82 | return withScope(scope => { |
| 83 | scope.setSDKProcessingMetadata({ __SENTRY_SUPPRESS_TRACING__: true }); |
| 84 | return callback(); |
| 85 | }); |
| 86 | } |
| 87 | |
| 88 | setAsyncContextStrategy({ |
| 89 | suppressTracing, |
no test coverage detected