Skip to content

Commit cafbfba

Browse files
committed
rewrite comment
1 parent 05f6c2c commit cafbfba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/nuxt/src/runtime/plugins/sentry.server.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ import { addSentryTracingMetaTags, extractErrorContext } from '../utils';
1818
export default defineNitroPlugin(nitroApp => {
1919
nitroApp.h3App.handler = new Proxy(nitroApp.h3App.handler, {
2020
async apply(handlerTarget, handlerThisArg, handlerArgs: Parameters<typeof nitroApp.h3App.handler>) {
21-
// In environments where we cannot make use of OTel httpInstrumentation, e.g. when using top level import
22-
// of the server instrumentation file instead of `--import` or dynamic import like on vercel
23-
// we still need to ensure requests are properly isolated
21+
// In environments where we cannot make use of OTel httpInstrumentation, e.g. when just importing the Sentry server config at
22+
// the top level instead of `--import` or dynamic import like on Vercel, we still need to ensure requests are properly isolated
2423
const isolationScope = getIsolationScope();
2524
const newIsolationScope = isolationScope === getDefaultIsolationScope() ? isolationScope.clone() : isolationScope;
2625

0 commit comments

Comments
 (0)