diff --git a/apps/nextjs-14_2_1/instrumentation.ts b/apps/nextjs-14_2_1/instrumentation.ts new file mode 100644 index 0000000..eb8ae01 --- /dev/null +++ b/apps/nextjs-14_2_1/instrumentation.ts @@ -0,0 +1,11 @@ +import * as Sentry from '@sentry/nextjs'; + +export async function register() { + if (process.env.NEXT_RUNTIME === 'nodejs') { + await import('./sentry.server.config'); + } + + if (process.env.NEXT_RUNTIME === 'edge') { + await import('./sentry.edge.config'); + } +} diff --git a/apps/nextjs-14_2_1/next.config.mjs b/apps/nextjs-14_2_1/next.config.mjs index c2daf40..2e1a77c 100644 --- a/apps/nextjs-14_2_1/next.config.mjs +++ b/apps/nextjs-14_2_1/next.config.mjs @@ -1,6 +1,8 @@ import { withSentryConfig } from '@sentry/nextjs'; /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + experimental: { instrumentationHook: true }, +}; export default withSentryConfig(nextConfig); diff --git a/apps/nextjs-14_2_1/package.json b/apps/nextjs-14_2_1/package.json index f8e34ca..a5b234e 100644 --- a/apps/nextjs-14_2_1/package.json +++ b/apps/nextjs-14_2_1/package.json @@ -10,7 +10,7 @@ "lint": "next lint" }, "dependencies": { - "@sentry/nextjs": "7.110.1", + "@sentry/nextjs": "8.9.2", "next": "14.2.1", "react": "^18", "react-dom": "^18" diff --git a/payload-files/nextjs-14_2_1/route-handlers/_api_test-error--event.json b/payload-files/nextjs-14_2_1/route-handlers/_api_test-error--event.json index 28acad4..2a77212 100644 --- a/payload-files/nextjs-14_2_1/route-handlers/_api_test-error--event.json +++ b/payload-files/nextjs-14_2_1/route-handlers/_api_test-error--event.json @@ -4,51 +4,22 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]", + "transaction": "GET /api/test-error" } }, { "type": "event" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": " \u001b[37m\u001b[1m○\u001b[22m\u001b[39m Compiling / ...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled / in 3s (2143 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /favicon.ico in 181ms (1216 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success in 130ms (1218 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error in 300ms (1190 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -79,14 +50,6 @@ "version": "v20.12.1" }, "trace": { - "data": { - "sentry.op": "http.server", - "sentry.origin": "auto.function.nextjs", - "sentry.sample_rate": 1, - "sentry.source": "route" - }, - "op": "http.server", - "origin": "auto.function.nextjs", "parent_span_id": "[[ID3]]", "span_id": "[[ID4]]", "trace_id": "[[ID2]]" @@ -103,120 +66,11 @@ }, "stacktrace": { "frames": [ - { - "colno": "[[highNumber]]", - "context_line": "'{snip} is.userland.fetchCache;let s=await this.actionAsyncStorage.run({isAppRoute:!0,isAction:function(e){let{isFetchAction:t,isURLEncodedAction:r, {snip}", - "filename": "[[FILENAME1]]", - "function": "e_.execute", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} Action:o,isFetchAction:a}}(e);return!!(t||r||n)}(e)},()=>H.wrap(this.requestAsyncStorage,n,()=>V.wrap(this.staticGenerationAsyncStorage,o,n= {snip}", - "filename": "[[FILENAME1]]", - "function": "", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} },assetPrefix:(null==n?void 0:n.assetPrefix)||\"\"};return e.run(c,o,c)}};var I=r(\"./dist/compiled/react/index.js\"),U=r.n(I);let F=\"DYNAMIC_SE {snip}", - "filename": "[[FILENAME1]]", - "function": "Object.wrap", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} (t||r||n)}(e)},()=>H.wrap(this.requestAsyncStorage,n,()=>V.wrap(this.staticGenerationAsyncStorage,o,n=>{var o;let s=n.isStaticGeneration;if( {snip}", - "filename": "[[FILENAME1]]", - "function": "", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} aftMode:r.isDraftMode,prerenderState:a};return r.store=s,e.run(s,n,s)}};function Y(){return new Response(null,{status:400})}function J(){ret {snip}", - "filename": "[[FILENAME1]]", - "function": "Object.wrap", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, { "colno": "[[highNumber]]", "context_line": "'{snip} SpanAttributes())||o.set(\"next.route\",l),(0,M.getTracer)().trace(d.runHandler,{spanName:`executing api route (app) ${l}`,attributes:{\"next.r {snip}", "filename": "[[FILENAME1]]", - "function": "", + "function": "?", "in_app": false, "lineno": 6, "module": "next.dist.compiled.next-server:app-route.runtime.dev", @@ -232,7 +86,7 @@ { "colno": 28, "context_line": " return context.with(spanContext.setValue(rootSpanIdKey, spanId), ()=>this.getTracerInstance().startActiveSpan(spanName, options, (span)=>{", - "filename": "[[FILENAME3]]", + "filename": "[[FILENAME2]]", "function": "NextTracerImpl.trace", "in_app": false, "lineno": 122, @@ -257,32 +111,61 @@ ] }, { - "colno": 518, - "context_line": "'{snip} ve()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextMana {snip}", - "filename": "[[FILENAME4]]", + "colno": 46, + "context_line": " return this._getContextManager().with(context, fn, thisArg, ...args);", + "filename": "[[FILENAME3]]", "function": "ContextAPI.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 60, + "module": "@opentelemetry.api.build.src.api:context", + "post_context": [ + " }", + " /**", + " * Bind a context to a target function or event emitter", + " *", + " * @param context context to bind to the event emitter or function. Defaults to the currently active context", + " * @param target function or event emitter to bind", + " */" + ], + "pre_context": [ + " *", + " * @param context context to be active during function execution", + " * @param fn function to execute in a context", + " * @param thisArg optional receiver to be used for calling fn", + " * @param args optional arguments forwarded to fn", + " */", + " with(context, fn, thisArg, ...args) {" + ] }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} r{active(){return n.ROOT_CONTEXT}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}t.Noo {snip}", + "colno": 24, "filename": "[[FILENAME4]]", - "function": "NoopContextManager.with", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" + }, + { + "colno": 14, + "filename": "[[FILENAME6]]", + "function": "AsyncLocalStorage.run", + "in_app": false, + "lineno": 346, + "module": "node:async_hooks" }, { "colno": 103, "context_line": " return context.with(spanContext.setValue(rootSpanIdKey, spanId), ()=>this.getTracerInstance().startActiveSpan(spanName, options, (span)=>{", - "filename": "[[FILENAME3]]", - "function": "", + "filename": "[[FILENAME2]]", + "function": "?", "in_app": false, "lineno": 122, "module": "next.dist.server.lib.trace:tracer", @@ -306,54 +189,50 @@ ] }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} tiveSpan(e,t,r,n){const a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)}_getTracer(){if(this._delegate){return this. {snip}", - "filename": "[[FILENAME4]]", - "function": "ProxyTracer.startActiveSpan", + "colno": 76, + "filename": "[[FILENAME7]]", + "function": "Tracer.startActiveSpan", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 136, + "module": "@opentelemetry.sdk-trace-base.build.esm:Tracer" }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} s.startSpan(e,o,u);const g=(0,a.setSpan)(u,l);return c.with(g,s,undefined,l)}}t.NoopTracer=NoopTracer;function isSpanContext(e){return typeo {snip}", - "filename": "[[FILENAME4]]", - "function": "NoopTracer.startActiveSpan", + "colno": 54, + "filename": "[[FILENAME8]]", + "function": "ContextAPI.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 518, - "context_line": "'{snip} ve()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextMana {snip}", + "colno": 24, "filename": "[[FILENAME4]]", - "function": "ContextAPI.with", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} r{active(){return n.ROOT_CONTEXT}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}t.Noo {snip}", - "filename": "[[FILENAME4]]", - "function": "NoopContextManager.with", + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" + }, + { + "colno": 14, + "filename": "[[FILENAME6]]", + "function": "AsyncLocalStorage.run", + "in_app": false, + "lineno": 346, + "module": "node:async_hooks" }, { "colno": 36, "context_line": " const result = fn(span);", - "filename": "[[FILENAME3]]", - "function": "", + "filename": "[[FILENAME2]]", + "function": "?", "in_app": false, "lineno": 140, "module": "next.dist.server.lib.trace:tracer", @@ -380,7 +259,7 @@ "colno": "[[highNumber]]", "context_line": "'{snip} yncStorage:this.staticGenerationAsyncStorage});let o=await r(i,{params:t.params?function(e){let t={};for(let[r,n]of Object.entries(e))void 0 {snip}", "filename": "[[FILENAME1]]", - "function": "", + "function": "?", "in_app": false, "lineno": 6, "module": "next.dist.compiled.next-server:app-route.runtime.dev", @@ -395,159 +274,159 @@ }, { "colno": 10, - "filename": "[[FILENAME5]]", + "filename": "[[FILENAME9]]", "function": "Object.apply", - "in_app": false, - "lineno": 66, + "in_app": true, + "lineno": 64, "module": "route.ts" }, { - "colno": 78, - "filename": "[[FILENAME6]]", + "colno": 27, + "filename": "[[FILENAME10]]", "function": "Object.apply", "in_app": false, - "lineno": 37, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 22, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { - "colno": 70, - "filename": "[[FILENAME7]]", - "function": "withIsolationScope", + "colno": 17, + "filename": "[[FILENAME11]]", + "function": "Object.escapeNextjsTracing", "in_app": false, - "lineno": 244, - "module": "@sentry.core.esm:exports" + "lineno": 83, + "module": "@sentry.nextjs.cjs.common.utils:tracingUtils" }, { - "colno": 36, - "filename": "[[FILENAME8]]", - "function": "runWithAsyncContext", + "colno": 16, + "filename": "[[FILENAME12]]", + "function": "Object.withActiveSpan", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 189, + "module": "@sentry.core.cjs.tracing:trace" }, { - "colno": 25, - "filename": "[[FILENAME9]]", - "function": "Object.runWithAsyncContext", + "colno": 26, + "filename": "[[FILENAME4]]", + "function": "Object.withActiveSpan", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": 948, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", + "colno": 54, + "filename": "[[FILENAME8]]", + "function": "ContextAPI.with", "in_app": false, - "lineno": 346, - "module": "node:async_hooks" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 14, - "filename": "[[FILENAME9]]", - "function": "eval", + "colno": 24, + "filename": "[[FILENAME4]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 12, - "filename": "[[FILENAME7]]", - "function": "eval", + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 245, - "module": "@sentry.core.esm:exports" + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" }, { - "colno": 75, + "colno": 14, "filename": "[[FILENAME6]]", - "function": "eval", - "in_app": false, - "lineno": 43, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" - }, - { - "colno": 70, - "filename": "[[FILENAME10]]", - "function": "continueTrace", + "function": "AsyncLocalStorage.run", "in_app": false, - "lineno": 289, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 346, + "module": "node:async_hooks" }, { - "colno": 36, - "filename": "[[FILENAME8]]", - "function": "runWithAsyncContext", + "colno": 59, + "filename": "[[FILENAME4]]", + "function": "eval", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 948, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 25, - "filename": "[[FILENAME9]]", - "function": "Object.runWithAsyncContext", + "colno": 40, + "filename": "[[FILENAME11]]", + "function": "eval", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": 88, + "module": "@sentry.nextjs.cjs.common.utils:tracingUtils" }, { "colno": 14, - "filename": "[[FILENAME2]]", + "filename": "[[FILENAME6]]", "function": "AsyncLocalStorage.run", "in_app": false, "lineno": 346, "module": "node:async_hooks" }, { - "colno": 14, - "filename": "[[FILENAME9]]", + "colno": 16, + "filename": "[[FILENAME11]]", "function": "eval", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": 89, + "module": "@sentry.nextjs.cjs.common.utils:tracingUtils" }, { - "colno": 12, + "colno": 21, "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 290, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 40, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { - "colno": 83, - "filename": "[[FILENAME6]]", - "function": "eval", + "colno": 16, + "filename": "[[FILENAME13]]", + "function": "Object.withIsolationScope", "in_app": false, - "lineno": 50, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 103, + "module": "@sentry.core.cjs:currentScopes" }, { - "colno": 70, - "filename": "[[FILENAME10]]", - "function": "startSpan", + "colno": 28, + "filename": "[[FILENAME4]]", + "function": "Object.withSetIsolationScope", "in_app": false, - "lineno": 101, - "module": "@sentry.core.esm.tracing:trace" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 36, + "colno": 54, "filename": "[[FILENAME8]]", - "function": "runWithAsyncContext", + "function": "ContextAPI.with", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 25, - "filename": "[[FILENAME9]]", - "function": "Object.runWithAsyncContext", + "colno": 24, + "filename": "[[FILENAME4]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" }, { "colno": 14, - "filename": "[[FILENAME2]]", + "filename": "[[FILENAME6]]", "function": "AsyncLocalStorage.run", "in_app": false, "lineno": 346, @@ -555,90 +434,130 @@ }, { "colno": 14, - "filename": "[[FILENAME9]]", + "filename": "[[FILENAME4]]", "function": "eval", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 66, + "colno": 25, "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 102, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 43, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" + }, + { + "colno": 16, + "filename": "[[FILENAME12]]", + "function": "Object.startSpan", + "in_app": false, + "lineno": 35, + "module": "@sentry.core.cjs.tracing:trace" + }, + { + "colno": 17, + "filename": "[[FILENAME4]]", + "function": "Object.startSpan", + "in_app": false, + "lineno": 855, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 18, + "colno": 76, "filename": "[[FILENAME7]]", - "function": "withScope", + "function": "Tracer.startActiveSpan", "in_app": false, - "lineno": 214, - "module": "@sentry.core.esm:exports" + "lineno": 136, + "module": "@opentelemetry.sdk-trace-base.build.esm:Tracer" }, { - "colno": 28, + "colno": 54, "filename": "[[FILENAME8]]", - "function": "Hub.withScope", + "function": "ContextAPI.with", "in_app": false, - "lineno": 216, - "module": "@sentry.core.esm:hub" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 98, - "filename": "[[FILENAME10]]", + "colno": 24, + "filename": "[[FILENAME4]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" + }, + { + "colno": 14, + "filename": "[[FILENAME6]]", + "function": "AsyncLocalStorage.run", + "in_app": false, + "lineno": 346, + "module": "node:async_hooks" + }, + { + "colno": 17, + "filename": "[[FILENAME4]]", "function": "eval", "in_app": false, - "lineno": 118, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 858, + "module": "@sentry.opentelemetry.cjs:index" }, { "colno": 26, - "filename": "[[FILENAME11]]", - "function": "handleCallbackErrors", + "filename": "[[FILENAME14]]", + "function": "Object.handleCallbackErrors", "in_app": false, - "lineno": 29, - "module": "@sentry.core.esm.utils:handleCallbackErrors" + "lineno": 26, + "module": "@sentry.core.cjs.utils:handleCallbackErrors" }, { - "colno": 15, - "filename": "[[FILENAME10]]", - "function": "status.status", + "colno": 13, + "filename": "[[FILENAME4]]", + "function": "eval", "in_app": false, - "lineno": 119, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 859, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 108, - "filename": "[[FILENAME6]]", + "colno": 45, + "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 60, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 54, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { "colno": 26, - "filename": "[[FILENAME11]]", - "function": "handleCallbackErrors", + "filename": "[[FILENAME15]]", + "function": "Object.handleCallbackErrors", "in_app": false, - "lineno": 29, - "module": "@sentry.core.esm.utils:handleCallbackErrors" + "lineno": 26, + "module": "@sentry.core.cjs.utils:handleCallbackErrors" }, { - "colno": 44, - "filename": "[[FILENAME6]]", + "colno": 42, + "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 61, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 55, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { "colno": 86, - "filename": "[[FILENAME5]]", + "filename": "[[FILENAME9]]", "function": "GET$1", - "in_app": false, - "lineno": 24, + "in_app": true, + "lineno": 22, "module": "route.ts" } ] @@ -656,16 +575,16 @@ "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", - "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=2cdc9402e1174cd08ca2f51a4804cd16", + "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=849afbc4d0a24f309883f0df27432370,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", "pragma": "no-cache", - "referer": "http://localhost:3030/", + "referer": "http://localhost:3030/test-route-handlers", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", - "sentry-trace": "2cdc9402e1174cd08ca2f51a4804cd16-abe8d663cfdee8d7", + "sentry-trace": "849afbc4d0a24f309883f0df27432370-9004ba82f6434237-1", "user-agent": "[[user-agent]]", "x-forwarded-for": "::ffff:127.0.0.1", "x-forwarded-host": "localhost:3030", @@ -681,35 +600,43 @@ "LinkedErrors", "RequestData", "Console", - "Undici", + "NodeFetch", + "OnUncaughtException", "OnUnhandledRejection", "ContextLines", - "LocalVariables", + "LocalVariablesAsync", "Context", "Modules", - "RewriteFrames", + "Express", + "Fastify", + "Graphql", + "Mongo", + "Mongoose", + "Mysql", + "Mysql2", + "Postgres", + "Nest", + "Hapi", + "Koa", + "Connect", "Http", - "OnUncaughtException" + "DistDirRewriteFrames" ], "name": "sentry.javascript.nextjs", "packages": [ { "name": "npm:@sentry/nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.3" } ], - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "server_name": "D9M3PY4LQ7.local", - "tags": { - "runtime": "node", - "transaction": "GET /api/test-error" - }, "timestamp": "[[timestamp]]", - "transaction": " " + "transaction": "GET /api/test-error" } ] diff --git a/payload-files/nextjs-14_2_1/route-handlers/_api_test-error--transaction.json b/payload-files/nextjs-14_2_1/route-handlers/_api_test-error--transaction.json index 35524c7..a730a7d 100644 --- a/payload-files/nextjs-14_2_1/route-handlers/_api_test-error--transaction.json +++ b/payload-files/nextjs-14_2_1/route-handlers/_api_test-error--transaction.json @@ -4,331 +4,22 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]", + "transaction": "GET /api/test-error" } }, { "type": "transaction" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": " \u001b[37m\u001b[1m○\u001b[22m\u001b[39m Compiling / ...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled / in 3s (2143 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /favicon.ico in 181ms (1216 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success in 130ms (1218 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error in 300ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fapp%2Fapi%2Ftest-error%2Froute.ts&methodName=GET%241&arguments=&lineNumber=24&column=86" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=61&column=44" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=60&column=108" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=status.status&arguments=&lineNumber=119&column=15" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=118&column=98" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Futils%2FhandleCallbackErrors.js&methodName=handleCallbackErrors&arguments=&lineNumber=29&column=26" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=Hub.withScope&arguments=&lineNumber=216&column=28" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=withScope&arguments=&lineNumber=214&column=18" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=102&column=66" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=startSpan&arguments=&lineNumber=101&column=70" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=50&column=83" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=290&column=12" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=continueTrace&arguments=&lineNumber=289&column=70" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=43&column=75" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=eval&arguments=&lineNumber=245&column=12" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=withIsolationScope&arguments=&lineNumber=244&column=70" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=Object.apply&arguments=&lineNumber=37&column=78" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fapp%2Fapi%2Ftest-error%2Froute.ts&methodName=Object.apply&arguments=&lineNumber=66&column=10" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Futils%2FhandleCallbackErrors.js&methodName=handleCallbackErrors&arguments=&lineNumber=29&column=26" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -354,6 +45,16 @@ "name": "macOS", "version": "14.2" }, + "otel": { + "resource": { + "service.name": "node", + "service.namespace": "sentry", + "service.version": "8.0.0-beta.3", + "telemetry.sdk.language": "nodejs", + "telemetry.sdk.name": "opentelemetry", + "telemetry.sdk.version": "1.23.0" + } + }, "runtime": { "name": "node", "version": "v20.12.1" @@ -361,6 +62,7 @@ "trace": { "data": { "http.response.status_code": 200, + "otel.kind": "INTERNAL", "sentry.op": "http.server", "sentry.origin": "auto.function.nextjs", "sentry.sample_rate": 1, @@ -371,9 +73,6 @@ "parent_span_id": "[[ID3]]", "span_id": "[[ID4]]", "status": "ok", - "tags": { - "http.status_code": "200" - }, "trace_id": "[[ID2]]" } }, @@ -387,16 +86,16 @@ "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", - "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=2cdc9402e1174cd08ca2f51a4804cd16", + "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=849afbc4d0a24f309883f0df27432370,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", "pragma": "no-cache", - "referer": "http://localhost:3030/", + "referer": "http://localhost:3030/test-route-handlers", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", - "sentry-trace": "2cdc9402e1174cd08ca2f51a4804cd16-abe8d663cfdee8d7", + "sentry-trace": "849afbc4d0a24f309883f0df27432370-9004ba82f6434237-1", "user-agent": "[[user-agent]]", "x-forwarded-for": "::ffff:127.0.0.1", "x-forwarded-host": "localhost:3030", @@ -412,514 +111,44 @@ "LinkedErrors", "RequestData", "Console", - "Undici", + "NodeFetch", + "OnUncaughtException", "OnUnhandledRejection", "ContextLines", - "LocalVariables", + "LocalVariablesAsync", "Context", "Modules", - "RewriteFrames", + "Express", + "Fastify", + "Graphql", + "Mongo", + "Mongoose", + "Mysql", + "Mysql2", + "Postgres", + "Nest", + "Hapi", + "Koa", + "Connect", "Http", - "OnUncaughtException" + "DistDirRewriteFrames" ], "name": "sentry.javascript.nextjs", "packages": [ { "name": "npm:@sentry/nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.3" } ], - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "server_name": "D9M3PY4LQ7.local", - "spans": [ - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fapp%2Fapi%2Ftest-error%2Froute.ts&methodName=GET%241&arguments=&lineNumber=24&column=86", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID5]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=61&column=44", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID6]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Futils%2FhandleCallbackErrors.js&methodName=handleCallbackErrors&arguments=&lineNumber=29&column=26", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID7]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=60&column=108", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID8]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=status.status&arguments=&lineNumber=119&column=15", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID9]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=118&column=98", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID10]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=Hub.withScope&arguments=&lineNumber=216&column=28", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID11]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=withScope&arguments=&lineNumber=214&column=18", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID12]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=102&column=66", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID13]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID14]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID15]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID16]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=startSpan&arguments=&lineNumber=101&column=70", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID17]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=50&column=83", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID18]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=290&column=12", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID19]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=continueTrace&arguments=&lineNumber=289&column=70", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID20]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=43&column=75", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID21]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=eval&arguments=&lineNumber=245&column=12", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID22]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=withIsolationScope&arguments=&lineNumber=244&column=70", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID23]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=Object.apply&arguments=&lineNumber=37&column=78", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID24]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fapp%2Fapi%2Ftest-error%2Froute.ts&methodName=Object.apply&arguments=&lineNumber=66&column=10", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID25]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Futils%2FhandleCallbackErrors.js&methodName=handleCallbackErrors&arguments=&lineNumber=29&column=26", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID26]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID27]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID28]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID29]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID30]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID31]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID32]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - } - ], + "spans": [], "start_timestamp": "[[timestamp]]", - "tags": { - "http.status_code": "200", - "runtime": "node", - "transaction": "GET /api/test-error" - }, "timestamp": "[[timestamp]]", "transaction": "GET /api/test-error", "transaction_info": { diff --git a/payload-files/nextjs-14_2_1/route-handlers/_api_test-error-manual--event.json b/payload-files/nextjs-14_2_1/route-handlers/_api_test-error-manual--event.json index e73730f..04dde4b 100644 --- a/payload-files/nextjs-14_2_1/route-handlers/_api_test-error-manual--event.json +++ b/payload-files/nextjs-14_2_1/route-handlers/_api_test-error-manual--event.json @@ -4,75 +4,22 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]", + "transaction": "GET /api/test-error-manual" } }, { "type": "event" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": " \u001b[37m\u001b[1m○\u001b[22m\u001b[39m Compiling / ...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled / in 3s (2143 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /favicon.ico in 181ms (1216 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success in 130ms (1218 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error in 300ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-success/[param] in 237ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-error/[param] in 134ms (1192 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success-manual in 165ms (1192 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error-manual in 203ms (1194 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -103,10 +50,6 @@ "version": "v20.12.1" }, "trace": { - "data": { - "sentry.origin": "manual" - }, - "origin": "manual", "parent_span_id": "[[ID3]]", "span_id": "[[ID4]]", "trace_id": "[[ID2]]" @@ -132,52 +75,84 @@ "module": "node:async_hooks" }, { - "colno": 14, + "colno": 59, "filename": "[[FILENAME2]]", "function": "eval", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": 948, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 12, + "colno": 40, "filename": "[[FILENAME3]]", "function": "eval", "in_app": false, - "lineno": 245, - "module": "@sentry.core.esm:exports" + "lineno": 88, + "module": "@sentry.nextjs.cjs.common.utils:tracingUtils" + }, + { + "colno": 14, + "filename": "[[FILENAME1]]", + "function": "AsyncLocalStorage.run", + "in_app": false, + "lineno": 346, + "module": "node:async_hooks" }, { - "colno": 75, + "colno": 16, + "filename": "[[FILENAME3]]", + "function": "eval", + "in_app": false, + "lineno": 89, + "module": "@sentry.nextjs.cjs.common.utils:tracingUtils" + }, + { + "colno": 21, "filename": "[[FILENAME4]]", "function": "eval", "in_app": false, - "lineno": 43, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 40, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { - "colno": 70, + "colno": 16, "filename": "[[FILENAME5]]", - "function": "continueTrace", + "function": "Object.withIsolationScope", "in_app": false, - "lineno": 289, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 103, + "module": "@sentry.core.cjs:currentScopes" }, { - "colno": 36, + "colno": 28, + "filename": "[[FILENAME2]]", + "function": "Object.withSetIsolationScope", + "in_app": false, + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 54, "filename": "[[FILENAME6]]", - "function": "runWithAsyncContext", + "function": "ContextAPI.with", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 25, + "colno": 24, "filename": "[[FILENAME2]]", - "function": "Object.runWithAsyncContext", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME7]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" }, { "colno": 14, @@ -192,48 +167,64 @@ "filename": "[[FILENAME2]]", "function": "eval", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 12, - "filename": "[[FILENAME5]]", + "colno": 25, + "filename": "[[FILENAME4]]", "function": "eval", "in_app": false, - "lineno": 290, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 43, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { - "colno": 83, - "filename": "[[FILENAME4]]", - "function": "eval", + "colno": 16, + "filename": "[[FILENAME8]]", + "function": "Object.startSpan", "in_app": false, - "lineno": 50, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 35, + "module": "@sentry.core.cjs.tracing:trace" }, { - "colno": 70, - "filename": "[[FILENAME5]]", - "function": "startSpan", + "colno": 17, + "filename": "[[FILENAME2]]", + "function": "Object.startSpan", "in_app": false, - "lineno": 101, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 855, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 36, + "colno": 76, + "filename": "[[FILENAME9]]", + "function": "Tracer.startActiveSpan", + "in_app": false, + "lineno": 136, + "module": "@opentelemetry.sdk-trace-base.build.esm:Tracer" + }, + { + "colno": 54, "filename": "[[FILENAME6]]", - "function": "runWithAsyncContext", + "function": "ContextAPI.with", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 25, + "colno": 24, "filename": "[[FILENAME2]]", - "function": "Object.runWithAsyncContext", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME7]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" }, { "colno": 14, @@ -244,116 +235,108 @@ "module": "node:async_hooks" }, { - "colno": 14, + "colno": 17, "filename": "[[FILENAME2]]", "function": "eval", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" - }, - { - "colno": 66, - "filename": "[[FILENAME5]]", - "function": "eval", - "in_app": false, - "lineno": 102, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 858, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 18, - "filename": "[[FILENAME3]]", - "function": "withScope", + "colno": 26, + "filename": "[[FILENAME10]]", + "function": "Object.handleCallbackErrors", "in_app": false, - "lineno": 214, - "module": "@sentry.core.esm:exports" + "lineno": 26, + "module": "@sentry.core.cjs.utils:handleCallbackErrors" }, { - "colno": 28, - "filename": "[[FILENAME6]]", - "function": "Hub.withScope", + "colno": 13, + "filename": "[[FILENAME2]]", + "function": "eval", "in_app": false, - "lineno": 216, - "module": "@sentry.core.esm:hub" + "lineno": 859, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 98, - "filename": "[[FILENAME5]]", + "colno": 45, + "filename": "[[FILENAME4]]", "function": "eval", "in_app": false, - "lineno": 118, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 54, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { "colno": 26, - "filename": "[[FILENAME7]]", - "function": "handleCallbackErrors", + "filename": "[[FILENAME11]]", + "function": "Object.handleCallbackErrors", "in_app": false, - "lineno": 29, - "module": "@sentry.core.esm.utils:handleCallbackErrors" + "lineno": 26, + "module": "@sentry.core.cjs.utils:handleCallbackErrors" }, { - "colno": 15, - "filename": "[[FILENAME5]]", - "function": "status.status", - "in_app": false, - "lineno": 119, - "module": "@sentry.core.esm.tracing:trace" - }, - { - "colno": 108, + "colno": 42, "filename": "[[FILENAME4]]", "function": "eval", "in_app": false, - "lineno": 60, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 55, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { - "colno": 26, - "filename": "[[FILENAME7]]", - "function": "handleCallbackErrors", - "in_app": false, - "lineno": 29, - "module": "@sentry.core.esm.utils:handleCallbackErrors" + "colno": 49, + "filename": "[[FILENAME12]]", + "function": "GET$1", + "in_app": true, + "lineno": 22, + "module": "route.ts" }, { - "colno": 44, - "filename": "[[FILENAME4]]", - "function": "eval", + "colno": 16, + "filename": "[[FILENAME8]]", + "function": "Object.startSpan", "in_app": false, - "lineno": 61, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 35, + "module": "@sentry.core.cjs.tracing:trace" }, { - "colno": 49, - "filename": "[[FILENAME8]]", - "function": "GET$1", + "colno": 17, + "filename": "[[FILENAME2]]", + "function": "Object.startSpan", "in_app": false, - "lineno": 25, - "module": "route.ts" + "lineno": 855, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 70, - "filename": "[[FILENAME5]]", - "function": "Module.startSpan", + "colno": 76, + "filename": "[[FILENAME9]]", + "function": "Tracer.startActiveSpan", "in_app": false, - "lineno": 101, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 136, + "module": "@opentelemetry.sdk-trace-base.build.esm:Tracer" }, { - "colno": 36, + "colno": 54, "filename": "[[FILENAME6]]", - "function": "runWithAsyncContext", + "function": "ContextAPI.with", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 25, + "colno": 24, "filename": "[[FILENAME2]]", - "function": "Object.runWithAsyncContext", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME7]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" }, { "colno": 14, @@ -364,92 +347,84 @@ "module": "node:async_hooks" }, { - "colno": 14, + "colno": 17, "filename": "[[FILENAME2]]", "function": "eval", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": 858, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 66, - "filename": "[[FILENAME5]]", - "function": "eval", - "in_app": false, - "lineno": 102, - "module": "@sentry.core.esm.tracing:trace" - }, - { - "colno": 18, - "filename": "[[FILENAME3]]", - "function": "withScope", + "colno": 26, + "filename": "[[FILENAME10]]", + "function": "Object.handleCallbackErrors", "in_app": false, - "lineno": 214, - "module": "@sentry.core.esm:exports" + "lineno": 26, + "module": "@sentry.core.cjs.utils:handleCallbackErrors" }, { - "colno": 28, - "filename": "[[FILENAME6]]", - "function": "Hub.withScope", + "colno": 13, + "filename": "[[FILENAME2]]", + "function": "eval", "in_app": false, - "lineno": 216, - "module": "@sentry.core.esm:hub" + "lineno": 859, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 98, - "filename": "[[FILENAME5]]", + "colno": 53, + "filename": "[[FILENAME12]]", "function": "eval", - "in_app": false, - "lineno": 118, - "module": "@sentry.core.esm.tracing:trace" + "in_app": true, + "lineno": 25, + "module": "route.ts" }, { - "colno": 26, - "filename": "[[FILENAME7]]", - "function": "handleCallbackErrors", + "colno": 16, + "filename": "[[FILENAME8]]", + "function": "Object.startSpan", "in_app": false, - "lineno": 29, - "module": "@sentry.core.esm.utils:handleCallbackErrors" + "lineno": 35, + "module": "@sentry.core.cjs.tracing:trace" }, { - "colno": 15, - "filename": "[[FILENAME5]]", - "function": "status.status", + "colno": 17, + "filename": "[[FILENAME2]]", + "function": "Object.startSpan", "in_app": false, - "lineno": 119, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 855, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 53, - "filename": "[[FILENAME8]]", - "function": "eval", + "colno": 76, + "filename": "[[FILENAME9]]", + "function": "Tracer.startActiveSpan", "in_app": false, - "lineno": 28, - "module": "route.ts" + "lineno": 136, + "module": "@opentelemetry.sdk-trace-base.build.esm:Tracer" }, { - "colno": 70, - "filename": "[[FILENAME5]]", - "function": "Module.startSpan", + "colno": 54, + "filename": "[[FILENAME6]]", + "function": "ContextAPI.with", "in_app": false, - "lineno": 101, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 36, - "filename": "[[FILENAME6]]", - "function": "runWithAsyncContext", + "colno": 24, + "filename": "[[FILENAME2]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 25, - "filename": "[[FILENAME2]]", - "function": "Object.runWithAsyncContext", + "colno": 40, + "filename": "[[FILENAME7]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" }, { "colno": 14, @@ -460,67 +435,35 @@ "module": "node:async_hooks" }, { - "colno": 14, + "colno": 17, "filename": "[[FILENAME2]]", "function": "eval", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" - }, - { - "colno": 66, - "filename": "[[FILENAME5]]", - "function": "eval", - "in_app": false, - "lineno": 102, - "module": "@sentry.core.esm.tracing:trace" - }, - { - "colno": 18, - "filename": "[[FILENAME3]]", - "function": "withScope", - "in_app": false, - "lineno": 214, - "module": "@sentry.core.esm:exports" - }, - { - "colno": 28, - "filename": "[[FILENAME6]]", - "function": "Hub.withScope", - "in_app": false, - "lineno": 216, - "module": "@sentry.core.esm:hub" - }, - { - "colno": 98, - "filename": "[[FILENAME5]]", - "function": "eval", - "in_app": false, - "lineno": 118, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 858, + "module": "@sentry.opentelemetry.cjs:index" }, { "colno": 26, - "filename": "[[FILENAME7]]", - "function": "handleCallbackErrors", + "filename": "[[FILENAME10]]", + "function": "Object.handleCallbackErrors", "in_app": false, - "lineno": 29, - "module": "@sentry.core.esm.utils:handleCallbackErrors" + "lineno": 26, + "module": "@sentry.core.cjs.utils:handleCallbackErrors" }, { - "colno": 15, - "filename": "[[FILENAME5]]", - "function": "status.status", + "colno": 13, + "filename": "[[FILENAME2]]", + "function": "eval", "in_app": false, - "lineno": 119, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 859, + "module": "@sentry.opentelemetry.cjs:index" }, { "colno": 74, - "filename": "[[FILENAME8]]", + "filename": "[[FILENAME12]]", "function": "eval", - "in_app": false, - "lineno": 31, + "in_app": true, + "lineno": 28, "module": "route.ts" } ] @@ -538,16 +481,16 @@ "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", - "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=2cdc9402e1174cd08ca2f51a4804cd16", + "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=849afbc4d0a24f309883f0df27432370,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", "pragma": "no-cache", - "referer": "http://localhost:3030/", + "referer": "http://localhost:3030/test-route-handlers", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", - "sentry-trace": "2cdc9402e1174cd08ca2f51a4804cd16-abe8d663cfdee8d7", + "sentry-trace": "849afbc4d0a24f309883f0df27432370-9004ba82f6434237-1", "user-agent": "[[user-agent]]", "x-forwarded-for": "::ffff:127.0.0.1", "x-forwarded-host": "localhost:3030", @@ -563,35 +506,43 @@ "LinkedErrors", "RequestData", "Console", - "Undici", + "NodeFetch", + "OnUncaughtException", "OnUnhandledRejection", "ContextLines", - "LocalVariables", + "LocalVariablesAsync", "Context", "Modules", - "RewriteFrames", + "Express", + "Fastify", + "Graphql", + "Mongo", + "Mongoose", + "Mysql", + "Mysql2", + "Postgres", + "Nest", + "Hapi", + "Koa", + "Connect", "Http", - "OnUncaughtException" + "DistDirRewriteFrames" ], "name": "sentry.javascript.nextjs", "packages": [ { "name": "npm:@sentry/nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.3" } ], - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "server_name": "D9M3PY4LQ7.local", - "tags": { - "runtime": "node", - "transaction": "GET /api/test-error-manual" - }, "timestamp": "[[timestamp]]", - "transaction": " " + "transaction": "GET /api/test-error-manual" } ] diff --git a/payload-files/nextjs-14_2_1/route-handlers/_api_test-error-manual--transaction.json b/payload-files/nextjs-14_2_1/route-handlers/_api_test-error-manual--transaction.json index b7e430e..246c078 100644 --- a/payload-files/nextjs-14_2_1/route-handlers/_api_test-error-manual--transaction.json +++ b/payload-files/nextjs-14_2_1/route-handlers/_api_test-error-manual--transaction.json @@ -4,75 +4,22 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]", + "transaction": "GET /api/test-error-manual" } }, { "type": "transaction" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": " \u001b[37m\u001b[1m○\u001b[22m\u001b[39m Compiling / ...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled / in 3s (2143 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /favicon.ico in 181ms (1216 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success in 130ms (1218 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error in 300ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-success/[param] in 237ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-error/[param] in 134ms (1192 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success-manual in 165ms (1192 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error-manual in 203ms (1194 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -98,6 +45,16 @@ "name": "macOS", "version": "14.2" }, + "otel": { + "resource": { + "service.name": "node", + "service.namespace": "sentry", + "service.version": "8.0.0-beta.3", + "telemetry.sdk.language": "nodejs", + "telemetry.sdk.name": "opentelemetry", + "telemetry.sdk.version": "1.23.0" + } + }, "runtime": { "name": "node", "version": "v20.12.1" @@ -105,6 +62,7 @@ "trace": { "data": { "http.response.status_code": 200, + "otel.kind": "INTERNAL", "sentry.op": "http.server", "sentry.origin": "auto.function.nextjs", "sentry.sample_rate": 1, @@ -115,9 +73,6 @@ "parent_span_id": "[[ID3]]", "span_id": "[[ID4]]", "status": "ok", - "tags": { - "http.status_code": "200" - }, "trace_id": "[[ID2]]" } }, @@ -131,16 +86,16 @@ "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", - "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=2cdc9402e1174cd08ca2f51a4804cd16", + "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=849afbc4d0a24f309883f0df27432370,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", "pragma": "no-cache", - "referer": "http://localhost:3030/", + "referer": "http://localhost:3030/test-route-handlers", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", - "sentry-trace": "2cdc9402e1174cd08ca2f51a4804cd16-abe8d663cfdee8d7", + "sentry-trace": "849afbc4d0a24f309883f0df27432370-9004ba82f6434237-1", "user-agent": "[[user-agent]]", "x-forwarded-for": "::ffff:127.0.0.1", "x-forwarded-host": "localhost:3030", @@ -156,33 +111,46 @@ "LinkedErrors", "RequestData", "Console", - "Undici", + "NodeFetch", + "OnUncaughtException", "OnUnhandledRejection", "ContextLines", - "LocalVariables", + "LocalVariablesAsync", "Context", "Modules", - "RewriteFrames", + "Express", + "Fastify", + "Graphql", + "Mongo", + "Mongoose", + "Mysql", + "Mysql2", + "Postgres", + "Nest", + "Hapi", + "Koa", + "Connect", "Http", - "OnUncaughtException" + "DistDirRewriteFrames" ], "name": "sentry.javascript.nextjs", "packages": [ { "name": "npm:@sentry/nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.3" } ], - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "server_name": "D9M3PY4LQ7.local", "spans": [ { "data": { + "otel.kind": "INTERNAL", "sentry.origin": "manual" }, "description": "test-span", @@ -190,11 +158,13 @@ "parent_span_id": "[[ID4]]", "span_id": "[[ID5]]", "start_timestamp": "[[timestamp]]", + "status": "ok", "timestamp": "[[timestamp]]", "trace_id": "[[ID2]]" }, { "data": { + "otel.kind": "INTERNAL", "sentry.origin": "manual" }, "description": "child-span", @@ -202,781 +172,12 @@ "parent_span_id": "[[ID5]]", "span_id": "[[ID6]]", "start_timestamp": "[[timestamp]]", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fapp%2Fapi%2Ftest-error-manual%2Froute.ts&methodName=eval&arguments=&lineNumber=31&column=74", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID7]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=status.status&arguments=&lineNumber=119&column=15", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID8]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Futils%2FhandleCallbackErrors.js&methodName=handleCallbackErrors&arguments=&lineNumber=29&column=26", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID9]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=118&column=98", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID10]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=Hub.withScope&arguments=&lineNumber=216&column=28", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID11]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=withScope&arguments=&lineNumber=214&column=18", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID12]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=102&column=66", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID13]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID14]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID15]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID16]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=Module.startSpan&arguments=&lineNumber=101&column=70", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID17]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fapp%2Fapi%2Ftest-error-manual%2Froute.ts&methodName=eval&arguments=&lineNumber=28&column=53", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID18]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fapp%2Fapi%2Ftest-error-manual%2Froute.ts&methodName=GET%241&arguments=&lineNumber=25&column=49", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID19]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=61&column=44", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID20]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=60&column=108", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID21]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=startSpan&arguments=&lineNumber=101&column=70", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID22]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=50&column=83", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID23]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=290&column=12", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID24]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=continueTrace&arguments=&lineNumber=289&column=70", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID25]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=43&column=75", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID26]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=eval&arguments=&lineNumber=245&column=12", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID27]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=status.status&arguments=&lineNumber=119&column=15", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID28]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=status.status&arguments=&lineNumber=119&column=15", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID29]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Futils%2FhandleCallbackErrors.js&methodName=handleCallbackErrors&arguments=&lineNumber=29&column=26", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID30]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Futils%2FhandleCallbackErrors.js&methodName=handleCallbackErrors&arguments=&lineNumber=29&column=26", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID31]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Futils%2FhandleCallbackErrors.js&methodName=handleCallbackErrors&arguments=&lineNumber=29&column=26", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID32]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=118&column=98", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID33]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=118&column=98", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID34]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=Hub.withScope&arguments=&lineNumber=216&column=28", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID35]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=Hub.withScope&arguments=&lineNumber=216&column=28", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID36]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=102&column=66", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID37]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=102&column=66", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID38]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=withScope&arguments=&lineNumber=214&column=18", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID39]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=withScope&arguments=&lineNumber=214&column=18", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID40]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID41]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID42]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID43]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID44]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID45]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID46]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID47]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID48]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID49]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID50]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=Module.startSpan&arguments=&lineNumber=101&column=70", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID51]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", + "status": "ok", "timestamp": "[[timestamp]]", "trace_id": "[[ID2]]" } ], "start_timestamp": "[[timestamp]]", - "tags": { - "http.status_code": "200", - "runtime": "node", - "transaction": "GET /api/test-error-manual" - }, "timestamp": "[[timestamp]]", "transaction": "GET /api/test-error-manual", "transaction_info": { diff --git a/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-caught--event.json b/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-caught--event.json index d3ce0d2..038209a 100644 --- a/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-caught--event.json +++ b/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-caught--event.json @@ -4,93 +4,22 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]", + "transaction": "GET /api/test-local-variables-caught" } }, { "type": "event" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": " \u001b[37m\u001b[1m○\u001b[22m\u001b[39m Compiling / ...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled / in 3s (2143 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /favicon.ico in 181ms (1216 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success in 130ms (1218 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error in 300ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-success/[param] in 237ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-error/[param] in 134ms (1192 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success-manual in 165ms (1192 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error-manual in 203ms (1194 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-local-variables-uncaught in 168ms (1194 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "error", - "message": " \u001b[31m\u001b[1m⨯\u001b[22m\u001b[39m Error: Uncaught Local Variable Error - {\"randomVariableToRecord\":\"LOCAL_VARIABLE\"}\n at GET$1 (webpack-internal:///(rsc)/./app/api/test-local-variables-uncaught/route.ts:24:11)\n at eval (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:61:44)\n at handleCallbackErrors (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/utils/handleCallbackErrors.js:29:26)\n at eval (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:60:108)\n at status.status (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:119:15)\n at handleCallbackErrors (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/utils/handleCallbackErrors.js:29:26)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:118:98)\n at Hub.withScope (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/hub.js:216:28)\n at withScope (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/exports.js:214:18)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:102:66)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:49:14)\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:48:25)\n at runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/hub.js:799:36)\n at startSpan (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:101:70)\n at eval (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:50:83)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:290:12)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:49:14)\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:48:25)\n at runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/hub.js:799:36)\n at continueTrace (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:289:70)\n at eval (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:43:75)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/exports.js:245:12)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:49:14)\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:48:25)\n at runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/hub.js:799:36)\n at withIsolationScope (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/exports.js:244:70)\n at Object.apply (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:37:78)\n at Object.apply (webpack-internal:///(rsc)/./app/api/test-local-variables-uncaught/route.ts:64:10)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:53244\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/server/lib/trace/tracer.js:140:36\n at NoopContextManager.with (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)\n at ContextAPI.with (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)\n at NoopTracer.startActiveSpan (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18093)\n at ProxyTracer.startActiveSpan (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18854)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/server/lib/trace/tracer.js:122:103\n at NoopContextManager.with (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)\n at ContextAPI.with (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)\n at NextTracerImpl.trace (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/server/lib/trace/tracer.js:122:28)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:46069\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.wrap (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:39157)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:45176\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.wrap (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:37592)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:45138\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at e_.execute (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:44531)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-local-variables-caught in 189ms (1196 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -121,14 +50,6 @@ "version": "v20.12.1" }, "trace": { - "data": { - "sentry.op": "http.server", - "sentry.origin": "auto.function.nextjs", - "sentry.sample_rate": 1, - "sentry.source": "route" - }, - "op": "http.server", - "origin": "auto.function.nextjs", "parent_span_id": "[[ID3]]", "span_id": "[[ID4]]", "trace_id": "[[ID2]]" @@ -145,120 +66,11 @@ }, "stacktrace": { "frames": [ - { - "colno": "[[highNumber]]", - "context_line": "'{snip} is.userland.fetchCache;let s=await this.actionAsyncStorage.run({isAppRoute:!0,isAction:function(e){let{isFetchAction:t,isURLEncodedAction:r, {snip}", - "filename": "[[FILENAME1]]", - "function": "e_.execute", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} Action:o,isFetchAction:a}}(e);return!!(t||r||n)}(e)},()=>H.wrap(this.requestAsyncStorage,n,()=>V.wrap(this.staticGenerationAsyncStorage,o,n= {snip}", - "filename": "[[FILENAME1]]", - "function": "", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} },assetPrefix:(null==n?void 0:n.assetPrefix)||\"\"};return e.run(c,o,c)}};var I=r(\"./dist/compiled/react/index.js\"),U=r.n(I);let F=\"DYNAMIC_SE {snip}", - "filename": "[[FILENAME1]]", - "function": "Object.wrap", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} (t||r||n)}(e)},()=>H.wrap(this.requestAsyncStorage,n,()=>V.wrap(this.staticGenerationAsyncStorage,o,n=>{var o;let s=n.isStaticGeneration;if( {snip}", - "filename": "[[FILENAME1]]", - "function": "", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} aftMode:r.isDraftMode,prerenderState:a};return r.store=s,e.run(s,n,s)}};function Y(){return new Response(null,{status:400})}function J(){ret {snip}", - "filename": "[[FILENAME1]]", - "function": "Object.wrap", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, { "colno": "[[highNumber]]", "context_line": "'{snip} SpanAttributes())||o.set(\"next.route\",l),(0,M.getTracer)().trace(d.runHandler,{spanName:`executing api route (app) ${l}`,attributes:{\"next.r {snip}", "filename": "[[FILENAME1]]", - "function": "", + "function": "?", "in_app": false, "lineno": 6, "module": "next.dist.compiled.next-server:app-route.runtime.dev", @@ -274,7 +86,7 @@ { "colno": 28, "context_line": " return context.with(spanContext.setValue(rootSpanIdKey, spanId), ()=>this.getTracerInstance().startActiveSpan(spanName, options, (span)=>{", - "filename": "[[FILENAME3]]", + "filename": "[[FILENAME2]]", "function": "NextTracerImpl.trace", "in_app": false, "lineno": 122, @@ -299,32 +111,61 @@ ] }, { - "colno": 518, - "context_line": "'{snip} ve()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextMana {snip}", - "filename": "[[FILENAME4]]", + "colno": 46, + "context_line": " return this._getContextManager().with(context, fn, thisArg, ...args);", + "filename": "[[FILENAME3]]", "function": "ContextAPI.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 60, + "module": "@opentelemetry.api.build.src.api:context", + "post_context": [ + " }", + " /**", + " * Bind a context to a target function or event emitter", + " *", + " * @param context context to bind to the event emitter or function. Defaults to the currently active context", + " * @param target function or event emitter to bind", + " */" + ], + "pre_context": [ + " *", + " * @param context context to be active during function execution", + " * @param fn function to execute in a context", + " * @param thisArg optional receiver to be used for calling fn", + " * @param args optional arguments forwarded to fn", + " */", + " with(context, fn, thisArg, ...args) {" + ] }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} r{active(){return n.ROOT_CONTEXT}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}t.Noo {snip}", + "colno": 24, "filename": "[[FILENAME4]]", - "function": "NoopContextManager.with", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" + }, + { + "colno": 14, + "filename": "[[FILENAME6]]", + "function": "AsyncLocalStorage.run", + "in_app": false, + "lineno": 346, + "module": "node:async_hooks" }, { "colno": 103, "context_line": " return context.with(spanContext.setValue(rootSpanIdKey, spanId), ()=>this.getTracerInstance().startActiveSpan(spanName, options, (span)=>{", - "filename": "[[FILENAME3]]", - "function": "", + "filename": "[[FILENAME2]]", + "function": "?", "in_app": false, "lineno": 122, "module": "next.dist.server.lib.trace:tracer", @@ -348,54 +189,50 @@ ] }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} tiveSpan(e,t,r,n){const a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)}_getTracer(){if(this._delegate){return this. {snip}", - "filename": "[[FILENAME4]]", - "function": "ProxyTracer.startActiveSpan", + "colno": 76, + "filename": "[[FILENAME7]]", + "function": "Tracer.startActiveSpan", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 136, + "module": "@opentelemetry.sdk-trace-base.build.esm:Tracer" }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} s.startSpan(e,o,u);const g=(0,a.setSpan)(u,l);return c.with(g,s,undefined,l)}}t.NoopTracer=NoopTracer;function isSpanContext(e){return typeo {snip}", - "filename": "[[FILENAME4]]", - "function": "NoopTracer.startActiveSpan", + "colno": 54, + "filename": "[[FILENAME8]]", + "function": "ContextAPI.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 518, - "context_line": "'{snip} ve()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextMana {snip}", + "colno": 24, "filename": "[[FILENAME4]]", - "function": "ContextAPI.with", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} r{active(){return n.ROOT_CONTEXT}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}t.Noo {snip}", - "filename": "[[FILENAME4]]", - "function": "NoopContextManager.with", + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" + }, + { + "colno": 14, + "filename": "[[FILENAME6]]", + "function": "AsyncLocalStorage.run", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 346, + "module": "node:async_hooks" }, { "colno": 36, "context_line": " const result = fn(span);", - "filename": "[[FILENAME3]]", - "function": "", + "filename": "[[FILENAME2]]", + "function": "?", "in_app": false, "lineno": 140, "module": "next.dist.server.lib.trace:tracer", @@ -422,7 +259,7 @@ "colno": "[[highNumber]]", "context_line": "'{snip} yncStorage:this.staticGenerationAsyncStorage});let o=await r(i,{params:t.params?function(e){let t={};for(let[r,n]of Object.entries(e))void 0 {snip}", "filename": "[[FILENAME1]]", - "function": "", + "function": "?", "in_app": false, "lineno": 6, "module": "next.dist.compiled.next-server:app-route.runtime.dev", @@ -437,159 +274,159 @@ }, { "colno": 10, - "filename": "[[FILENAME5]]", + "filename": "[[FILENAME9]]", "function": "Object.apply", - "in_app": false, - "lineno": 72, + "in_app": true, + "lineno": 70, "module": "route.ts" }, { - "colno": 78, - "filename": "[[FILENAME6]]", + "colno": 27, + "filename": "[[FILENAME10]]", "function": "Object.apply", "in_app": false, - "lineno": 37, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 22, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { - "colno": 70, - "filename": "[[FILENAME7]]", - "function": "withIsolationScope", + "colno": 17, + "filename": "[[FILENAME11]]", + "function": "Object.escapeNextjsTracing", "in_app": false, - "lineno": 244, - "module": "@sentry.core.esm:exports" + "lineno": 83, + "module": "@sentry.nextjs.cjs.common.utils:tracingUtils" }, { - "colno": 36, - "filename": "[[FILENAME8]]", - "function": "runWithAsyncContext", + "colno": 16, + "filename": "[[FILENAME12]]", + "function": "Object.withActiveSpan", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 189, + "module": "@sentry.core.cjs.tracing:trace" }, { - "colno": 25, - "filename": "[[FILENAME9]]", - "function": "Object.runWithAsyncContext", + "colno": 26, + "filename": "[[FILENAME4]]", + "function": "Object.withActiveSpan", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": 948, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", + "colno": 54, + "filename": "[[FILENAME8]]", + "function": "ContextAPI.with", "in_app": false, - "lineno": 346, - "module": "node:async_hooks" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 14, - "filename": "[[FILENAME9]]", - "function": "eval", + "colno": 24, + "filename": "[[FILENAME4]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 12, - "filename": "[[FILENAME7]]", - "function": "eval", + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 245, - "module": "@sentry.core.esm:exports" + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" }, { - "colno": 75, + "colno": 14, "filename": "[[FILENAME6]]", - "function": "eval", - "in_app": false, - "lineno": 43, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" - }, - { - "colno": 70, - "filename": "[[FILENAME10]]", - "function": "continueTrace", + "function": "AsyncLocalStorage.run", "in_app": false, - "lineno": 289, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 346, + "module": "node:async_hooks" }, { - "colno": 36, - "filename": "[[FILENAME8]]", - "function": "runWithAsyncContext", + "colno": 59, + "filename": "[[FILENAME4]]", + "function": "eval", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 948, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 25, - "filename": "[[FILENAME9]]", - "function": "Object.runWithAsyncContext", + "colno": 40, + "filename": "[[FILENAME11]]", + "function": "eval", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": 88, + "module": "@sentry.nextjs.cjs.common.utils:tracingUtils" }, { "colno": 14, - "filename": "[[FILENAME2]]", + "filename": "[[FILENAME6]]", "function": "AsyncLocalStorage.run", "in_app": false, "lineno": 346, "module": "node:async_hooks" }, { - "colno": 14, - "filename": "[[FILENAME9]]", + "colno": 16, + "filename": "[[FILENAME11]]", "function": "eval", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": 89, + "module": "@sentry.nextjs.cjs.common.utils:tracingUtils" }, { - "colno": 12, + "colno": 21, "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 290, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 40, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { - "colno": 83, - "filename": "[[FILENAME6]]", - "function": "eval", + "colno": 16, + "filename": "[[FILENAME13]]", + "function": "Object.withIsolationScope", "in_app": false, - "lineno": 50, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 103, + "module": "@sentry.core.cjs:currentScopes" }, { - "colno": 70, - "filename": "[[FILENAME10]]", - "function": "startSpan", + "colno": 28, + "filename": "[[FILENAME4]]", + "function": "Object.withSetIsolationScope", "in_app": false, - "lineno": 101, - "module": "@sentry.core.esm.tracing:trace" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 36, + "colno": 54, "filename": "[[FILENAME8]]", - "function": "runWithAsyncContext", + "function": "ContextAPI.with", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 25, - "filename": "[[FILENAME9]]", - "function": "Object.runWithAsyncContext", + "colno": 24, + "filename": "[[FILENAME4]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" }, { "colno": 14, - "filename": "[[FILENAME2]]", + "filename": "[[FILENAME6]]", "function": "AsyncLocalStorage.run", "in_app": false, "lineno": 346, @@ -597,94 +434,131 @@ }, { "colno": 14, - "filename": "[[FILENAME9]]", + "filename": "[[FILENAME4]]", "function": "eval", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 66, + "colno": 25, "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 102, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 43, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { - "colno": 18, + "colno": 16, + "filename": "[[FILENAME12]]", + "function": "Object.startSpan", + "in_app": false, + "lineno": 35, + "module": "@sentry.core.cjs.tracing:trace" + }, + { + "colno": 17, + "filename": "[[FILENAME4]]", + "function": "Object.startSpan", + "in_app": false, + "lineno": 855, + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 76, "filename": "[[FILENAME7]]", - "function": "withScope", + "function": "Tracer.startActiveSpan", "in_app": false, - "lineno": 214, - "module": "@sentry.core.esm:exports" + "lineno": 136, + "module": "@opentelemetry.sdk-trace-base.build.esm:Tracer" }, { - "colno": 28, + "colno": 54, "filename": "[[FILENAME8]]", - "function": "Hub.withScope", + "function": "ContextAPI.with", "in_app": false, - "lineno": 216, - "module": "@sentry.core.esm:hub" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 98, - "filename": "[[FILENAME10]]", + "colno": 24, + "filename": "[[FILENAME4]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" + }, + { + "colno": 14, + "filename": "[[FILENAME6]]", + "function": "AsyncLocalStorage.run", + "in_app": false, + "lineno": 346, + "module": "node:async_hooks" + }, + { + "colno": 17, + "filename": "[[FILENAME4]]", "function": "eval", "in_app": false, - "lineno": 118, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 858, + "module": "@sentry.opentelemetry.cjs:index" }, { "colno": 26, - "filename": "[[FILENAME11]]", - "function": "handleCallbackErrors", + "filename": "[[FILENAME14]]", + "function": "Object.handleCallbackErrors", "in_app": false, - "lineno": 29, - "module": "@sentry.core.esm.utils:handleCallbackErrors" + "lineno": 26, + "module": "@sentry.core.cjs.utils:handleCallbackErrors" }, { - "colno": 15, - "filename": "[[FILENAME10]]", - "function": "status.status", + "colno": 13, + "filename": "[[FILENAME4]]", + "function": "eval", "in_app": false, - "lineno": 119, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 859, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 108, - "filename": "[[FILENAME6]]", + "colno": 45, + "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 60, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 54, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { "colno": 26, - "filename": "[[FILENAME11]]", - "function": "handleCallbackErrors", + "filename": "[[FILENAME15]]", + "function": "Object.handleCallbackErrors", "in_app": false, - "lineno": 29, - "module": "@sentry.core.esm.utils:handleCallbackErrors" + "lineno": 26, + "module": "@sentry.core.cjs.utils:handleCallbackErrors" }, { - "colno": 44, - "filename": "[[FILENAME6]]", + "colno": 42, + "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 61, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 55, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { "colno": 15, - "filename": "[[FILENAME5]]", + "filename": "[[FILENAME9]]", "function": "GET$1", - "in_app": false, - "lineno": 27, - "module": "route.ts", - "vars": { - "randomVariableToRecord": "LOCAL_VARIABLE" - } + "in_app": true, + "lineno": 25, + "module": "route.ts" } ] }, @@ -701,16 +575,16 @@ "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", - "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=2cdc9402e1174cd08ca2f51a4804cd16", + "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=849afbc4d0a24f309883f0df27432370,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", "pragma": "no-cache", - "referer": "http://localhost:3030/", + "referer": "http://localhost:3030/test-route-handlers", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", - "sentry-trace": "2cdc9402e1174cd08ca2f51a4804cd16-abe8d663cfdee8d7", + "sentry-trace": "849afbc4d0a24f309883f0df27432370-9004ba82f6434237-1", "user-agent": "[[user-agent]]", "x-forwarded-for": "::ffff:127.0.0.1", "x-forwarded-host": "localhost:3030", @@ -726,35 +600,43 @@ "LinkedErrors", "RequestData", "Console", - "Undici", + "NodeFetch", + "OnUncaughtException", "OnUnhandledRejection", "ContextLines", - "LocalVariables", + "LocalVariablesAsync", "Context", "Modules", - "RewriteFrames", + "Express", + "Fastify", + "Graphql", + "Mongo", + "Mongoose", + "Mysql", + "Mysql2", + "Postgres", + "Nest", + "Hapi", + "Koa", + "Connect", "Http", - "OnUncaughtException" + "DistDirRewriteFrames" ], "name": "sentry.javascript.nextjs", "packages": [ { "name": "npm:@sentry/nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.3" } ], - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "server_name": "D9M3PY4LQ7.local", - "tags": { - "runtime": "node", - "transaction": "GET /api/test-local-variables-caught" - }, "timestamp": "[[timestamp]]", - "transaction": " " + "transaction": "GET /api/test-local-variables-caught" } ] diff --git a/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-caught--transaction.json b/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-caught--transaction.json index 57919ce..1a0b380 100644 --- a/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-caught--transaction.json +++ b/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-caught--transaction.json @@ -4,93 +4,22 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]", + "transaction": "GET /api/test-local-variables-caught" } }, { "type": "transaction" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": " \u001b[37m\u001b[1m○\u001b[22m\u001b[39m Compiling / ...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled / in 3s (2143 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /favicon.ico in 181ms (1216 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success in 130ms (1218 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error in 300ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-success/[param] in 237ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-error/[param] in 134ms (1192 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success-manual in 165ms (1192 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error-manual in 203ms (1194 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-local-variables-uncaught in 168ms (1194 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "error", - "message": " \u001b[31m\u001b[1m⨯\u001b[22m\u001b[39m Error: Uncaught Local Variable Error - {\"randomVariableToRecord\":\"LOCAL_VARIABLE\"}\n at GET$1 (webpack-internal:///(rsc)/./app/api/test-local-variables-uncaught/route.ts:24:11)\n at eval (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:61:44)\n at handleCallbackErrors (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/utils/handleCallbackErrors.js:29:26)\n at eval (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:60:108)\n at status.status (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:119:15)\n at handleCallbackErrors (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/utils/handleCallbackErrors.js:29:26)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:118:98)\n at Hub.withScope (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/hub.js:216:28)\n at withScope (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/exports.js:214:18)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:102:66)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:49:14)\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:48:25)\n at runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/hub.js:799:36)\n at startSpan (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:101:70)\n at eval (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:50:83)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:290:12)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:49:14)\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:48:25)\n at runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/hub.js:799:36)\n at continueTrace (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:289:70)\n at eval (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:43:75)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/exports.js:245:12)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:49:14)\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:48:25)\n at runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/hub.js:799:36)\n at withIsolationScope (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/exports.js:244:70)\n at Object.apply (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:37:78)\n at Object.apply (webpack-internal:///(rsc)/./app/api/test-local-variables-uncaught/route.ts:64:10)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:53244\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/server/lib/trace/tracer.js:140:36\n at NoopContextManager.with (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)\n at ContextAPI.with (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)\n at NoopTracer.startActiveSpan (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18093)\n at ProxyTracer.startActiveSpan (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18854)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/server/lib/trace/tracer.js:122:103\n at NoopContextManager.with (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)\n at ContextAPI.with (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)\n at NextTracerImpl.trace (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/server/lib/trace/tracer.js:122:28)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:46069\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.wrap (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:39157)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:45176\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.wrap (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:37592)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:45138\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at e_.execute (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:44531)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-local-variables-caught in 189ms (1196 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -116,6 +45,16 @@ "name": "macOS", "version": "14.2" }, + "otel": { + "resource": { + "service.name": "node", + "service.namespace": "sentry", + "service.version": "8.0.0-beta.3", + "telemetry.sdk.language": "nodejs", + "telemetry.sdk.name": "opentelemetry", + "telemetry.sdk.version": "1.23.0" + } + }, "runtime": { "name": "node", "version": "v20.12.1" @@ -123,6 +62,7 @@ "trace": { "data": { "http.response.status_code": 200, + "otel.kind": "INTERNAL", "sentry.op": "http.server", "sentry.origin": "auto.function.nextjs", "sentry.sample_rate": 1, @@ -133,9 +73,6 @@ "parent_span_id": "[[ID3]]", "span_id": "[[ID4]]", "status": "ok", - "tags": { - "http.status_code": "200" - }, "trace_id": "[[ID2]]" } }, @@ -149,16 +86,16 @@ "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", - "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=2cdc9402e1174cd08ca2f51a4804cd16", + "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=849afbc4d0a24f309883f0df27432370,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", "pragma": "no-cache", - "referer": "http://localhost:3030/", + "referer": "http://localhost:3030/test-route-handlers", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", - "sentry-trace": "2cdc9402e1174cd08ca2f51a4804cd16-abe8d663cfdee8d7", + "sentry-trace": "849afbc4d0a24f309883f0df27432370-9004ba82f6434237-1", "user-agent": "[[user-agent]]", "x-forwarded-for": "::ffff:127.0.0.1", "x-forwarded-host": "localhost:3030", @@ -174,37 +111,44 @@ "LinkedErrors", "RequestData", "Console", - "Undici", + "NodeFetch", + "OnUncaughtException", "OnUnhandledRejection", "ContextLines", - "LocalVariables", + "LocalVariablesAsync", "Context", "Modules", - "RewriteFrames", + "Express", + "Fastify", + "Graphql", + "Mongo", + "Mongoose", + "Mysql", + "Mysql2", + "Postgres", + "Nest", + "Hapi", + "Koa", + "Connect", "Http", - "OnUncaughtException" + "DistDirRewriteFrames" ], "name": "sentry.javascript.nextjs", "packages": [ { "name": "npm:@sentry/nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.3" } ], - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "server_name": "D9M3PY4LQ7.local", "spans": [], "start_timestamp": "[[timestamp]]", - "tags": { - "http.status_code": "200", - "runtime": "node", - "transaction": "GET /api/test-local-variables-caught" - }, "timestamp": "[[timestamp]]", "transaction": "GET /api/test-local-variables-caught", "transaction_info": { diff --git a/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-uncaught--event.json b/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-uncaught--event.json index ebc2cbb..f7c446e 100644 --- a/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-uncaught--event.json +++ b/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-uncaught--event.json @@ -4,81 +4,22 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]", + "transaction": "GET /api/test-local-variables-uncaught" } }, { "type": "event" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": " \u001b[37m\u001b[1m○\u001b[22m\u001b[39m Compiling / ...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled / in 3s (2143 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /favicon.ico in 181ms (1216 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success in 130ms (1218 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error in 300ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-success/[param] in 237ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-error/[param] in 134ms (1192 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success-manual in 165ms (1192 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error-manual in 203ms (1194 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-local-variables-uncaught in 168ms (1194 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -109,14 +50,6 @@ "version": "v20.12.1" }, "trace": { - "data": { - "sentry.op": "http.server", - "sentry.origin": "auto.function.nextjs", - "sentry.sample_rate": 1, - "sentry.source": "route" - }, - "op": "http.server", - "origin": "auto.function.nextjs", "parent_span_id": "[[ID3]]", "span_id": "[[ID4]]", "trace_id": "[[ID2]]" @@ -133,120 +66,11 @@ }, "stacktrace": { "frames": [ - { - "colno": "[[highNumber]]", - "context_line": "'{snip} is.userland.fetchCache;let s=await this.actionAsyncStorage.run({isAppRoute:!0,isAction:function(e){let{isFetchAction:t,isURLEncodedAction:r, {snip}", - "filename": "[[FILENAME1]]", - "function": "e_.execute", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} Action:o,isFetchAction:a}}(e);return!!(t||r||n)}(e)},()=>H.wrap(this.requestAsyncStorage,n,()=>V.wrap(this.staticGenerationAsyncStorage,o,n= {snip}", - "filename": "[[FILENAME1]]", - "function": "", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} },assetPrefix:(null==n?void 0:n.assetPrefix)||\"\"};return e.run(c,o,c)}};var I=r(\"./dist/compiled/react/index.js\"),U=r.n(I);let F=\"DYNAMIC_SE {snip}", - "filename": "[[FILENAME1]]", - "function": "Object.wrap", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} (t||r||n)}(e)},()=>H.wrap(this.requestAsyncStorage,n,()=>V.wrap(this.staticGenerationAsyncStorage,o,n=>{var o;let s=n.isStaticGeneration;if( {snip}", - "filename": "[[FILENAME1]]", - "function": "", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} aftMode:r.isDraftMode,prerenderState:a};return r.store=s,e.run(s,n,s)}};function Y(){return new Response(null,{status:400})}function J(){ret {snip}", - "filename": "[[FILENAME1]]", - "function": "Object.wrap", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, { "colno": "[[highNumber]]", "context_line": "'{snip} SpanAttributes())||o.set(\"next.route\",l),(0,M.getTracer)().trace(d.runHandler,{spanName:`executing api route (app) ${l}`,attributes:{\"next.r {snip}", "filename": "[[FILENAME1]]", - "function": "", + "function": "?", "in_app": false, "lineno": 6, "module": "next.dist.compiled.next-server:app-route.runtime.dev", @@ -262,7 +86,7 @@ { "colno": 28, "context_line": " return context.with(spanContext.setValue(rootSpanIdKey, spanId), ()=>this.getTracerInstance().startActiveSpan(spanName, options, (span)=>{", - "filename": "[[FILENAME3]]", + "filename": "[[FILENAME2]]", "function": "NextTracerImpl.trace", "in_app": false, "lineno": 122, @@ -287,32 +111,61 @@ ] }, { - "colno": 518, - "context_line": "'{snip} ve()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextMana {snip}", - "filename": "[[FILENAME4]]", + "colno": 46, + "context_line": " return this._getContextManager().with(context, fn, thisArg, ...args);", + "filename": "[[FILENAME3]]", "function": "ContextAPI.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 60, + "module": "@opentelemetry.api.build.src.api:context", + "post_context": [ + " }", + " /**", + " * Bind a context to a target function or event emitter", + " *", + " * @param context context to bind to the event emitter or function. Defaults to the currently active context", + " * @param target function or event emitter to bind", + " */" + ], + "pre_context": [ + " *", + " * @param context context to be active during function execution", + " * @param fn function to execute in a context", + " * @param thisArg optional receiver to be used for calling fn", + " * @param args optional arguments forwarded to fn", + " */", + " with(context, fn, thisArg, ...args) {" + ] }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} r{active(){return n.ROOT_CONTEXT}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}t.Noo {snip}", + "colno": 24, "filename": "[[FILENAME4]]", - "function": "NoopContextManager.with", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" + }, + { + "colno": 14, + "filename": "[[FILENAME6]]", + "function": "AsyncLocalStorage.run", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 346, + "module": "node:async_hooks" }, { "colno": 103, "context_line": " return context.with(spanContext.setValue(rootSpanIdKey, spanId), ()=>this.getTracerInstance().startActiveSpan(spanName, options, (span)=>{", - "filename": "[[FILENAME3]]", - "function": "", + "filename": "[[FILENAME2]]", + "function": "?", "in_app": false, "lineno": 122, "module": "next.dist.server.lib.trace:tracer", @@ -336,54 +189,50 @@ ] }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} tiveSpan(e,t,r,n){const a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)}_getTracer(){if(this._delegate){return this. {snip}", - "filename": "[[FILENAME4]]", - "function": "ProxyTracer.startActiveSpan", + "colno": 76, + "filename": "[[FILENAME7]]", + "function": "Tracer.startActiveSpan", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 136, + "module": "@opentelemetry.sdk-trace-base.build.esm:Tracer" }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} s.startSpan(e,o,u);const g=(0,a.setSpan)(u,l);return c.with(g,s,undefined,l)}}t.NoopTracer=NoopTracer;function isSpanContext(e){return typeo {snip}", - "filename": "[[FILENAME4]]", - "function": "NoopTracer.startActiveSpan", + "colno": 54, + "filename": "[[FILENAME8]]", + "function": "ContextAPI.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 518, - "context_line": "'{snip} ve()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextMana {snip}", + "colno": 24, "filename": "[[FILENAME4]]", - "function": "ContextAPI.with", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} r{active(){return n.ROOT_CONTEXT}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}t.Noo {snip}", - "filename": "[[FILENAME4]]", - "function": "NoopContextManager.with", + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" + }, + { + "colno": 14, + "filename": "[[FILENAME6]]", + "function": "AsyncLocalStorage.run", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 346, + "module": "node:async_hooks" }, { "colno": 36, "context_line": " const result = fn(span);", - "filename": "[[FILENAME3]]", - "function": "", + "filename": "[[FILENAME2]]", + "function": "?", "in_app": false, "lineno": 140, "module": "next.dist.server.lib.trace:tracer", @@ -410,7 +259,7 @@ "colno": "[[highNumber]]", "context_line": "'{snip} yncStorage:this.staticGenerationAsyncStorage});let o=await r(i,{params:t.params?function(e){let t={};for(let[r,n]of Object.entries(e))void 0 {snip}", "filename": "[[FILENAME1]]", - "function": "", + "function": "?", "in_app": false, "lineno": 6, "module": "next.dist.compiled.next-server:app-route.runtime.dev", @@ -425,159 +274,159 @@ }, { "colno": 10, - "filename": "[[FILENAME5]]", + "filename": "[[FILENAME9]]", "function": "Object.apply", - "in_app": false, - "lineno": 64, + "in_app": true, + "lineno": 63, "module": "route.ts" }, { - "colno": 78, - "filename": "[[FILENAME6]]", + "colno": 27, + "filename": "[[FILENAME10]]", "function": "Object.apply", "in_app": false, - "lineno": 37, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 22, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { - "colno": 70, - "filename": "[[FILENAME7]]", - "function": "withIsolationScope", + "colno": 17, + "filename": "[[FILENAME11]]", + "function": "Object.escapeNextjsTracing", "in_app": false, - "lineno": 244, - "module": "@sentry.core.esm:exports" + "lineno": 83, + "module": "@sentry.nextjs.cjs.common.utils:tracingUtils" }, { - "colno": 36, - "filename": "[[FILENAME8]]", - "function": "runWithAsyncContext", + "colno": 16, + "filename": "[[FILENAME12]]", + "function": "Object.withActiveSpan", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 189, + "module": "@sentry.core.cjs.tracing:trace" }, { - "colno": 25, - "filename": "[[FILENAME9]]", - "function": "Object.runWithAsyncContext", + "colno": 26, + "filename": "[[FILENAME4]]", + "function": "Object.withActiveSpan", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": 948, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", + "colno": 54, + "filename": "[[FILENAME8]]", + "function": "ContextAPI.with", "in_app": false, - "lineno": 346, - "module": "node:async_hooks" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 14, - "filename": "[[FILENAME9]]", - "function": "eval", + "colno": 24, + "filename": "[[FILENAME4]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 12, - "filename": "[[FILENAME7]]", - "function": "eval", + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 245, - "module": "@sentry.core.esm:exports" + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" }, { - "colno": 75, + "colno": 14, "filename": "[[FILENAME6]]", - "function": "eval", - "in_app": false, - "lineno": 43, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" - }, - { - "colno": 70, - "filename": "[[FILENAME10]]", - "function": "continueTrace", + "function": "AsyncLocalStorage.run", "in_app": false, - "lineno": 289, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 346, + "module": "node:async_hooks" }, { - "colno": 36, - "filename": "[[FILENAME8]]", - "function": "runWithAsyncContext", + "colno": 59, + "filename": "[[FILENAME4]]", + "function": "eval", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 948, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 25, - "filename": "[[FILENAME9]]", - "function": "Object.runWithAsyncContext", + "colno": 40, + "filename": "[[FILENAME11]]", + "function": "eval", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": 88, + "module": "@sentry.nextjs.cjs.common.utils:tracingUtils" }, { "colno": 14, - "filename": "[[FILENAME2]]", + "filename": "[[FILENAME6]]", "function": "AsyncLocalStorage.run", "in_app": false, "lineno": 346, "module": "node:async_hooks" }, { - "colno": 14, - "filename": "[[FILENAME9]]", + "colno": 16, + "filename": "[[FILENAME11]]", "function": "eval", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": 89, + "module": "@sentry.nextjs.cjs.common.utils:tracingUtils" }, { - "colno": 12, + "colno": 21, "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 290, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 40, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { - "colno": 83, - "filename": "[[FILENAME6]]", - "function": "eval", + "colno": 16, + "filename": "[[FILENAME13]]", + "function": "Object.withIsolationScope", "in_app": false, - "lineno": 50, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 103, + "module": "@sentry.core.cjs:currentScopes" }, { - "colno": 70, - "filename": "[[FILENAME10]]", - "function": "startSpan", + "colno": 28, + "filename": "[[FILENAME4]]", + "function": "Object.withSetIsolationScope", "in_app": false, - "lineno": 101, - "module": "@sentry.core.esm.tracing:trace" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 36, + "colno": 54, "filename": "[[FILENAME8]]", - "function": "runWithAsyncContext", + "function": "ContextAPI.with", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 25, - "filename": "[[FILENAME9]]", - "function": "Object.runWithAsyncContext", + "colno": 24, + "filename": "[[FILENAME4]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" }, { "colno": 14, - "filename": "[[FILENAME2]]", + "filename": "[[FILENAME6]]", "function": "AsyncLocalStorage.run", "in_app": false, "lineno": 346, @@ -585,90 +434,130 @@ }, { "colno": 14, - "filename": "[[FILENAME9]]", + "filename": "[[FILENAME4]]", "function": "eval", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 66, + "colno": 25, "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 102, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 43, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { - "colno": 18, + "colno": 16, + "filename": "[[FILENAME12]]", + "function": "Object.startSpan", + "in_app": false, + "lineno": 35, + "module": "@sentry.core.cjs.tracing:trace" + }, + { + "colno": 17, + "filename": "[[FILENAME4]]", + "function": "Object.startSpan", + "in_app": false, + "lineno": 855, + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 76, "filename": "[[FILENAME7]]", - "function": "withScope", + "function": "Tracer.startActiveSpan", "in_app": false, - "lineno": 214, - "module": "@sentry.core.esm:exports" + "lineno": 136, + "module": "@opentelemetry.sdk-trace-base.build.esm:Tracer" }, { - "colno": 28, + "colno": 54, "filename": "[[FILENAME8]]", - "function": "Hub.withScope", + "function": "ContextAPI.with", "in_app": false, - "lineno": 216, - "module": "@sentry.core.esm:hub" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 98, - "filename": "[[FILENAME10]]", + "colno": 24, + "filename": "[[FILENAME4]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" + }, + { + "colno": 14, + "filename": "[[FILENAME6]]", + "function": "AsyncLocalStorage.run", + "in_app": false, + "lineno": 346, + "module": "node:async_hooks" + }, + { + "colno": 17, + "filename": "[[FILENAME4]]", "function": "eval", "in_app": false, - "lineno": 118, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 858, + "module": "@sentry.opentelemetry.cjs:index" }, { "colno": 26, - "filename": "[[FILENAME11]]", - "function": "handleCallbackErrors", + "filename": "[[FILENAME14]]", + "function": "Object.handleCallbackErrors", "in_app": false, - "lineno": 29, - "module": "@sentry.core.esm.utils:handleCallbackErrors" + "lineno": 26, + "module": "@sentry.core.cjs.utils:handleCallbackErrors" }, { - "colno": 15, - "filename": "[[FILENAME10]]", - "function": "status.status", + "colno": 13, + "filename": "[[FILENAME4]]", + "function": "eval", "in_app": false, - "lineno": 119, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 859, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 108, - "filename": "[[FILENAME6]]", + "colno": 45, + "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 60, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 54, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { "colno": 26, - "filename": "[[FILENAME11]]", - "function": "handleCallbackErrors", + "filename": "[[FILENAME15]]", + "function": "Object.handleCallbackErrors", "in_app": false, - "lineno": 29, - "module": "@sentry.core.esm.utils:handleCallbackErrors" + "lineno": 26, + "module": "@sentry.core.cjs.utils:handleCallbackErrors" }, { - "colno": 44, - "filename": "[[FILENAME6]]", + "colno": 42, + "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 61, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 55, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { "colno": 11, - "filename": "[[FILENAME5]]", + "filename": "[[FILENAME9]]", "function": "GET$1", - "in_app": false, - "lineno": 24, + "in_app": true, + "lineno": 23, "module": "route.ts" } ] @@ -686,16 +575,16 @@ "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", - "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=2cdc9402e1174cd08ca2f51a4804cd16", + "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=849afbc4d0a24f309883f0df27432370,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", "pragma": "no-cache", - "referer": "http://localhost:3030/", + "referer": "http://localhost:3030/test-route-handlers", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", - "sentry-trace": "2cdc9402e1174cd08ca2f51a4804cd16-abe8d663cfdee8d7", + "sentry-trace": "849afbc4d0a24f309883f0df27432370-9004ba82f6434237-1", "user-agent": "[[user-agent]]", "x-forwarded-for": "::ffff:127.0.0.1", "x-forwarded-host": "localhost:3030", @@ -711,35 +600,43 @@ "LinkedErrors", "RequestData", "Console", - "Undici", + "NodeFetch", + "OnUncaughtException", "OnUnhandledRejection", "ContextLines", - "LocalVariables", + "LocalVariablesAsync", "Context", "Modules", - "RewriteFrames", + "Express", + "Fastify", + "Graphql", + "Mongo", + "Mongoose", + "Mysql", + "Mysql2", + "Postgres", + "Nest", + "Hapi", + "Koa", + "Connect", "Http", - "OnUncaughtException" + "DistDirRewriteFrames" ], "name": "sentry.javascript.nextjs", "packages": [ { "name": "npm:@sentry/nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.3" } ], - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "server_name": "D9M3PY4LQ7.local", - "tags": { - "runtime": "node", - "transaction": "GET /api/test-local-variables-uncaught" - }, "timestamp": "[[timestamp]]", - "transaction": " " + "transaction": "GET /api/test-local-variables-uncaught" } ] diff --git a/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-uncaught--transaction.json b/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-uncaught--transaction.json index 0be0a38..e4ca4b1 100644 --- a/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-uncaught--transaction.json +++ b/payload-files/nextjs-14_2_1/route-handlers/_api_test-local-variables-uncaught--transaction.json @@ -4,93 +4,22 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]", + "transaction": "GET /api/test-local-variables-uncaught" } }, { "type": "transaction" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": " \u001b[37m\u001b[1m○\u001b[22m\u001b[39m Compiling / ...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled / in 3s (2143 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /favicon.ico in 181ms (1216 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success in 130ms (1218 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error in 300ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-success/[param] in 237ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-error/[param] in 134ms (1192 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success-manual in 165ms (1192 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error-manual in 203ms (1194 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-local-variables-uncaught in 168ms (1194 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "error", - "message": " \u001b[31m\u001b[1m⨯\u001b[22m\u001b[39m Error: Uncaught Local Variable Error - {\"randomVariableToRecord\":\"LOCAL_VARIABLE\"}\n at GET$1 (webpack-internal:///(rsc)/./app/api/test-local-variables-uncaught/route.ts:24:11)\n at eval (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:61:44)\n at handleCallbackErrors (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/utils/handleCallbackErrors.js:29:26)\n at eval (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:60:108)\n at status.status (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:119:15)\n at handleCallbackErrors (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/utils/handleCallbackErrors.js:29:26)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:118:98)\n at Hub.withScope (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/hub.js:216:28)\n at withScope (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/exports.js:214:18)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:102:66)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:49:14)\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:48:25)\n at runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/hub.js:799:36)\n at startSpan (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:101:70)\n at eval (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:50:83)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:290:12)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:49:14)\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:48:25)\n at runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/hub.js:799:36)\n at continueTrace (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/tracing/trace.js:289:70)\n at eval (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:43:75)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/exports.js:245:12)\n at eval (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:49:14)\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/node/esm/async/hooks.js:48:25)\n at runWithAsyncContext (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/hub.js:799:36)\n at withIsolationScope (webpack-internal:///(rsc)/../../node_modules/@sentry/core/esm/exports.js:244:70)\n at Object.apply (webpack-internal:///(rsc)/./node_modules/@sentry/nextjs/esm/common/wrapRouteHandlerWithSentry.js:37:78)\n at Object.apply (webpack-internal:///(rsc)/./app/api/test-local-variables-uncaught/route.ts:64:10)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:53244\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/server/lib/trace/tracer.js:140:36\n at NoopContextManager.with (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)\n at ContextAPI.with (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)\n at NoopTracer.startActiveSpan (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18093)\n at ProxyTracer.startActiveSpan (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18854)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/server/lib/trace/tracer.js:122:103\n at NoopContextManager.with (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)\n at ContextAPI.with (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)\n at NextTracerImpl.trace (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/server/lib/trace/tracer.js:122:28)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:46069\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.wrap (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:39157)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:45176\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.wrap (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:37592)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:45138\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at e_.execute (/Users/sigridh/Documents/DEV/sentry-javascript-examples/apps/nextjs-14_2_1/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:44531)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-local-variables-caught in 189ms (1196 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -116,12 +45,23 @@ "name": "macOS", "version": "14.2" }, + "otel": { + "resource": { + "service.name": "node", + "service.namespace": "sentry", + "service.version": "8.0.0-beta.3", + "telemetry.sdk.language": "nodejs", + "telemetry.sdk.name": "opentelemetry", + "telemetry.sdk.version": "1.23.0" + } + }, "runtime": { "name": "node", "version": "v20.12.1" }, "trace": { "data": { + "otel.kind": "INTERNAL", "sentry.op": "http.server", "sentry.origin": "auto.function.nextjs", "sentry.sample_rate": 1, @@ -131,7 +71,7 @@ "origin": "auto.function.nextjs", "parent_span_id": "[[ID3]]", "span_id": "[[ID4]]", - "status": "internal_error", + "status": "unknown_error", "trace_id": "[[ID2]]" } }, @@ -145,16 +85,16 @@ "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", - "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=2cdc9402e1174cd08ca2f51a4804cd16", + "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=849afbc4d0a24f309883f0df27432370,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", "pragma": "no-cache", - "referer": "http://localhost:3030/", + "referer": "http://localhost:3030/test-route-handlers", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", - "sentry-trace": "2cdc9402e1174cd08ca2f51a4804cd16-abe8d663cfdee8d7", + "sentry-trace": "849afbc4d0a24f309883f0df27432370-9004ba82f6434237-1", "user-agent": "[[user-agent]]", "x-forwarded-for": "::ffff:127.0.0.1", "x-forwarded-host": "localhost:3030", @@ -170,36 +110,44 @@ "LinkedErrors", "RequestData", "Console", - "Undici", + "NodeFetch", + "OnUncaughtException", "OnUnhandledRejection", "ContextLines", - "LocalVariables", + "LocalVariablesAsync", "Context", "Modules", - "RewriteFrames", + "Express", + "Fastify", + "Graphql", + "Mongo", + "Mongoose", + "Mysql", + "Mysql2", + "Postgres", + "Nest", + "Hapi", + "Koa", + "Connect", "Http", - "OnUncaughtException" + "DistDirRewriteFrames" ], "name": "sentry.javascript.nextjs", "packages": [ { "name": "npm:@sentry/nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.3" } ], - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "server_name": "D9M3PY4LQ7.local", "spans": [], "start_timestamp": "[[timestamp]]", - "tags": { - "runtime": "node", - "transaction": "GET /api/test-local-variables-uncaught" - }, "timestamp": "[[timestamp]]", "transaction": "GET /api/test-local-variables-uncaught", "transaction_info": { diff --git a/payload-files/nextjs-14_2_1/route-handlers/_api_test-param-error_[param]--event.json b/payload-files/nextjs-14_2_1/route-handlers/_api_test-param-error_[param]--event.json index 077936b..688b257 100644 --- a/payload-files/nextjs-14_2_1/route-handlers/_api_test-param-error_[param]--event.json +++ b/payload-files/nextjs-14_2_1/route-handlers/_api_test-param-error_[param]--event.json @@ -4,7 +4,7 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "sent_at": "[[ISODateString]]", "trace": { @@ -20,50 +20,6 @@ "type": "event" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": " \u001b[37m\u001b[1m○\u001b[22m\u001b[39m Compiling / ...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled / in 3s (2143 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /favicon.ico in 181ms (1216 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success in 130ms (1218 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error in 300ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-success/[param] in 237ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-error/[param] in 134ms (1192 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -94,15 +50,8 @@ "version": "v20.12.1" }, "trace": { - "data": { - "sentry.op": "http.server", - "sentry.origin": "auto.function.nextjs", - "sentry.sample_rate": 1, - "sentry.source": "route" - }, - "op": "http.server", - "origin": "auto.function.nextjs", - "span_id": "[[ID3]]", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID4]]", "trace_id": "[[ID2]]" } }, @@ -117,120 +66,11 @@ }, "stacktrace": { "frames": [ - { - "colno": "[[highNumber]]", - "context_line": "'{snip} is.userland.fetchCache;let s=await this.actionAsyncStorage.run({isAppRoute:!0,isAction:function(e){let{isFetchAction:t,isURLEncodedAction:r, {snip}", - "filename": "[[FILENAME1]]", - "function": "e_.execute", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} Action:o,isFetchAction:a}}(e);return!!(t||r||n)}(e)},()=>H.wrap(this.requestAsyncStorage,n,()=>V.wrap(this.staticGenerationAsyncStorage,o,n= {snip}", - "filename": "[[FILENAME1]]", - "function": "", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} },assetPrefix:(null==n?void 0:n.assetPrefix)||\"\"};return e.run(c,o,c)}};var I=r(\"./dist/compiled/react/index.js\"),U=r.n(I);let F=\"DYNAMIC_SE {snip}", - "filename": "[[FILENAME1]]", - "function": "Object.wrap", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} (t||r||n)}(e)},()=>H.wrap(this.requestAsyncStorage,n,()=>V.wrap(this.staticGenerationAsyncStorage,o,n=>{var o;let s=n.isStaticGeneration;if( {snip}", - "filename": "[[FILENAME1]]", - "function": "", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": "[[highNumber]]", - "context_line": "'{snip} aftMode:r.isDraftMode,prerenderState:a};return r.store=s,e.run(s,n,s)}};function Y(){return new Response(null,{status:400})}function J(){ret {snip}", - "filename": "[[FILENAME1]]", - "function": "Object.wrap", - "in_app": false, - "lineno": 6, - "module": "next.dist.compiled.next-server:app-route.runtime.dev", - "post_context": ["//# sourceMappingURL=app-route.runtime.dev.js.map"], - "pre_context": [ - "(()=>{var e={\"./dist/compiled/@edge-runtime/cookies/index.js\":e=>{\"use strict\";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor {snip}", - " * cookie", - " * Copyright(c) 2012-2014 Roman Shtylman", - " * Copyright(c) 2015 Douglas Christopher Wilson", - " * MIT Licensed" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, { "colno": "[[highNumber]]", "context_line": "'{snip} SpanAttributes())||o.set(\"next.route\",l),(0,M.getTracer)().trace(d.runHandler,{spanName:`executing api route (app) ${l}`,attributes:{\"next.r {snip}", "filename": "[[FILENAME1]]", - "function": "", + "function": "?", "in_app": false, "lineno": 6, "module": "next.dist.compiled.next-server:app-route.runtime.dev", @@ -246,7 +86,7 @@ { "colno": 28, "context_line": " return context.with(spanContext.setValue(rootSpanIdKey, spanId), ()=>this.getTracerInstance().startActiveSpan(spanName, options, (span)=>{", - "filename": "[[FILENAME3]]", + "filename": "[[FILENAME2]]", "function": "NextTracerImpl.trace", "in_app": false, "lineno": 122, @@ -271,32 +111,61 @@ ] }, { - "colno": 518, - "context_line": "'{snip} ve()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextMana {snip}", - "filename": "[[FILENAME4]]", + "colno": 46, + "context_line": " return this._getContextManager().with(context, fn, thisArg, ...args);", + "filename": "[[FILENAME3]]", "function": "ContextAPI.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 60, + "module": "@opentelemetry.api.build.src.api:context", + "post_context": [ + " }", + " /**", + " * Bind a context to a target function or event emitter", + " *", + " * @param context context to bind to the event emitter or function. Defaults to the currently active context", + " * @param target function or event emitter to bind", + " */" + ], + "pre_context": [ + " *", + " * @param context context to be active during function execution", + " * @param fn function to execute in a context", + " * @param thisArg optional receiver to be used for calling fn", + " * @param args optional arguments forwarded to fn", + " */", + " with(context, fn, thisArg, ...args) {" + ] }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} r{active(){return n.ROOT_CONTEXT}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}t.Noo {snip}", + "colno": 24, "filename": "[[FILENAME4]]", - "function": "NoopContextManager.with", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" + }, + { + "colno": 14, + "filename": "[[FILENAME6]]", + "function": "AsyncLocalStorage.run", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 346, + "module": "node:async_hooks" }, { "colno": 103, "context_line": " return context.with(spanContext.setValue(rootSpanIdKey, spanId), ()=>this.getTracerInstance().startActiveSpan(spanName, options, (span)=>{", - "filename": "[[FILENAME3]]", - "function": "", + "filename": "[[FILENAME2]]", + "function": "?", "in_app": false, "lineno": 122, "module": "next.dist.server.lib.trace:tracer", @@ -320,54 +189,50 @@ ] }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} tiveSpan(e,t,r,n){const a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)}_getTracer(){if(this._delegate){return this. {snip}", - "filename": "[[FILENAME4]]", - "function": "ProxyTracer.startActiveSpan", + "colno": 76, + "filename": "[[FILENAME7]]", + "function": "Tracer.startActiveSpan", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 136, + "module": "@opentelemetry.sdk-trace-base.build.esm:Tracer" }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} s.startSpan(e,o,u);const g=(0,a.setSpan)(u,l);return c.with(g,s,undefined,l)}}t.NoopTracer=NoopTracer;function isSpanContext(e){return typeo {snip}", - "filename": "[[FILENAME4]]", - "function": "NoopTracer.startActiveSpan", + "colno": 54, + "filename": "[[FILENAME8]]", + "function": "ContextAPI.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 518, - "context_line": "'{snip} ve()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextMana {snip}", + "colno": 24, "filename": "[[FILENAME4]]", - "function": "ContextAPI.with", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": "[[highNumber]]", - "context_line": "'{snip} r{active(){return n.ROOT_CONTEXT}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}t.Noo {snip}", - "filename": "[[FILENAME4]]", - "function": "NoopContextManager.with", + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 1, - "module": "next.dist.compiled.@opentelemetry.api:index", - "post_context": [], - "pre_context": [] + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" + }, + { + "colno": 14, + "filename": "[[FILENAME6]]", + "function": "AsyncLocalStorage.run", + "in_app": false, + "lineno": 346, + "module": "node:async_hooks" }, { "colno": 36, "context_line": " const result = fn(span);", - "filename": "[[FILENAME3]]", - "function": "", + "filename": "[[FILENAME2]]", + "function": "?", "in_app": false, "lineno": 140, "module": "next.dist.server.lib.trace:tracer", @@ -394,7 +259,7 @@ "colno": "[[highNumber]]", "context_line": "'{snip} yncStorage:this.staticGenerationAsyncStorage});let o=await r(i,{params:t.params?function(e){let t={};for(let[r,n]of Object.entries(e))void 0 {snip}", "filename": "[[FILENAME1]]", - "function": "", + "function": "?", "in_app": false, "lineno": 6, "module": "next.dist.compiled.next-server:app-route.runtime.dev", @@ -409,159 +274,159 @@ }, { "colno": 10, - "filename": "[[FILENAME5]]", + "filename": "[[FILENAME9]]", "function": "Object.apply", - "in_app": false, - "lineno": 70, + "in_app": true, + "lineno": 68, "module": "route.ts" }, { - "colno": 78, - "filename": "[[FILENAME6]]", + "colno": 27, + "filename": "[[FILENAME10]]", "function": "Object.apply", "in_app": false, - "lineno": 37, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 22, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { - "colno": 70, - "filename": "[[FILENAME7]]", - "function": "withIsolationScope", + "colno": 17, + "filename": "[[FILENAME11]]", + "function": "Object.escapeNextjsTracing", "in_app": false, - "lineno": 244, - "module": "@sentry.core.esm:exports" + "lineno": 83, + "module": "@sentry.nextjs.cjs.common.utils:tracingUtils" }, { - "colno": 36, - "filename": "[[FILENAME8]]", - "function": "runWithAsyncContext", + "colno": 16, + "filename": "[[FILENAME12]]", + "function": "Object.withActiveSpan", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 189, + "module": "@sentry.core.cjs.tracing:trace" }, { - "colno": 25, - "filename": "[[FILENAME9]]", - "function": "Object.runWithAsyncContext", + "colno": 26, + "filename": "[[FILENAME4]]", + "function": "Object.withActiveSpan", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": 948, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 14, - "filename": "[[FILENAME2]]", - "function": "AsyncLocalStorage.run", + "colno": 54, + "filename": "[[FILENAME8]]", + "function": "ContextAPI.with", "in_app": false, - "lineno": 346, - "module": "node:async_hooks" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 14, - "filename": "[[FILENAME9]]", - "function": "eval", + "colno": 24, + "filename": "[[FILENAME4]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 12, - "filename": "[[FILENAME7]]", - "function": "eval", + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 245, - "module": "@sentry.core.esm:exports" + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" }, { - "colno": 75, + "colno": 14, "filename": "[[FILENAME6]]", - "function": "eval", - "in_app": false, - "lineno": 43, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" - }, - { - "colno": 70, - "filename": "[[FILENAME10]]", - "function": "continueTrace", + "function": "AsyncLocalStorage.run", "in_app": false, - "lineno": 289, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 346, + "module": "node:async_hooks" }, { - "colno": 36, - "filename": "[[FILENAME8]]", - "function": "runWithAsyncContext", + "colno": 59, + "filename": "[[FILENAME4]]", + "function": "eval", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 948, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 25, - "filename": "[[FILENAME9]]", - "function": "Object.runWithAsyncContext", + "colno": 40, + "filename": "[[FILENAME11]]", + "function": "eval", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": 88, + "module": "@sentry.nextjs.cjs.common.utils:tracingUtils" }, { "colno": 14, - "filename": "[[FILENAME2]]", + "filename": "[[FILENAME6]]", "function": "AsyncLocalStorage.run", "in_app": false, "lineno": 346, "module": "node:async_hooks" }, { - "colno": 14, - "filename": "[[FILENAME9]]", + "colno": 16, + "filename": "[[FILENAME11]]", "function": "eval", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": 89, + "module": "@sentry.nextjs.cjs.common.utils:tracingUtils" }, { - "colno": 12, + "colno": 21, "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 290, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 40, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { - "colno": 83, - "filename": "[[FILENAME6]]", - "function": "eval", + "colno": 16, + "filename": "[[FILENAME13]]", + "function": "Object.withIsolationScope", "in_app": false, - "lineno": 50, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 103, + "module": "@sentry.core.cjs:currentScopes" }, { - "colno": 70, - "filename": "[[FILENAME10]]", - "function": "startSpan", + "colno": 28, + "filename": "[[FILENAME4]]", + "function": "Object.withSetIsolationScope", "in_app": false, - "lineno": 101, - "module": "@sentry.core.esm.tracing:trace" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 36, + "colno": 54, "filename": "[[FILENAME8]]", - "function": "runWithAsyncContext", + "function": "ContextAPI.with", "in_app": false, - "lineno": 799, - "module": "@sentry.core.esm:hub" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 25, - "filename": "[[FILENAME9]]", - "function": "Object.runWithAsyncContext", + "colno": 24, + "filename": "[[FILENAME4]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 48, - "module": "@sentry.node.esm.async:hooks" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" }, { "colno": 14, - "filename": "[[FILENAME2]]", + "filename": "[[FILENAME6]]", "function": "AsyncLocalStorage.run", "in_app": false, "lineno": 346, @@ -569,90 +434,130 @@ }, { "colno": 14, - "filename": "[[FILENAME9]]", + "filename": "[[FILENAME4]]", "function": "eval", "in_app": false, - "lineno": 49, - "module": "@sentry.node.esm.async:hooks" + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 66, + "colno": 25, "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 102, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 43, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" + }, + { + "colno": 16, + "filename": "[[FILENAME12]]", + "function": "Object.startSpan", + "in_app": false, + "lineno": 35, + "module": "@sentry.core.cjs.tracing:trace" + }, + { + "colno": 17, + "filename": "[[FILENAME4]]", + "function": "Object.startSpan", + "in_app": false, + "lineno": 855, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 18, + "colno": 76, "filename": "[[FILENAME7]]", - "function": "withScope", + "function": "Tracer.startActiveSpan", "in_app": false, - "lineno": 214, - "module": "@sentry.core.esm:exports" + "lineno": 136, + "module": "@opentelemetry.sdk-trace-base.build.esm:Tracer" }, { - "colno": 28, + "colno": 54, "filename": "[[FILENAME8]]", - "function": "Hub.withScope", + "function": "ContextAPI.with", "in_app": false, - "lineno": 216, - "module": "@sentry.core.esm:hub" + "lineno": 95, + "module": "@opentelemetry.api.build.esm.api:context" }, { - "colno": 98, - "filename": "[[FILENAME10]]", + "colno": 24, + "filename": "[[FILENAME4]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index" + }, + { + "colno": 40, + "filename": "[[FILENAME5]]", + "function": "SentryContextManager.with", + "in_app": false, + "lineno": 33, + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager" + }, + { + "colno": 14, + "filename": "[[FILENAME6]]", + "function": "AsyncLocalStorage.run", + "in_app": false, + "lineno": 346, + "module": "node:async_hooks" + }, + { + "colno": 17, + "filename": "[[FILENAME4]]", "function": "eval", "in_app": false, - "lineno": 118, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 858, + "module": "@sentry.opentelemetry.cjs:index" }, { "colno": 26, - "filename": "[[FILENAME11]]", - "function": "handleCallbackErrors", + "filename": "[[FILENAME14]]", + "function": "Object.handleCallbackErrors", "in_app": false, - "lineno": 29, - "module": "@sentry.core.esm.utils:handleCallbackErrors" + "lineno": 26, + "module": "@sentry.core.cjs.utils:handleCallbackErrors" }, { - "colno": 15, - "filename": "[[FILENAME10]]", - "function": "status.status", + "colno": 13, + "filename": "[[FILENAME4]]", + "function": "eval", "in_app": false, - "lineno": 119, - "module": "@sentry.core.esm.tracing:trace" + "lineno": 859, + "module": "@sentry.opentelemetry.cjs:index" }, { - "colno": 108, - "filename": "[[FILENAME6]]", + "colno": 45, + "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 60, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 54, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { "colno": 26, - "filename": "[[FILENAME11]]", - "function": "handleCallbackErrors", + "filename": "[[FILENAME15]]", + "function": "Object.handleCallbackErrors", "in_app": false, - "lineno": 29, - "module": "@sentry.core.esm.utils:handleCallbackErrors" + "lineno": 26, + "module": "@sentry.core.cjs.utils:handleCallbackErrors" }, { - "colno": 44, - "filename": "[[FILENAME6]]", + "colno": 42, + "filename": "[[FILENAME10]]", "function": "eval", "in_app": false, - "lineno": 61, - "module": "@sentry.nextjs.esm.common:wrapRouteHandlerWithSentry" + "lineno": 55, + "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry" }, { "colno": 86, - "filename": "[[FILENAME5]]", + "filename": "[[FILENAME9]]", "function": "GET$1", - "in_app": false, - "lineno": 24, + "in_app": true, + "lineno": 22, "module": "route.ts" } ] @@ -670,14 +575,16 @@ "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", + "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=849afbc4d0a24f309883f0df27432370,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", "pragma": "no-cache", - "referer": "http://localhost:3030/", + "referer": "http://localhost:3030/test-route-handlers", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", + "sentry-trace": "849afbc4d0a24f309883f0df27432370-9004ba82f6434237-1", "user-agent": "[[user-agent]]", "x-forwarded-for": "::ffff:127.0.0.1", "x-forwarded-host": "localhost:3030", @@ -693,35 +600,43 @@ "LinkedErrors", "RequestData", "Console", - "Undici", + "NodeFetch", + "OnUncaughtException", "OnUnhandledRejection", "ContextLines", - "LocalVariables", + "LocalVariablesAsync", "Context", "Modules", - "RewriteFrames", + "Express", + "Fastify", + "Graphql", + "Mongo", + "Mongoose", + "Mysql", + "Mysql2", + "Postgres", + "Nest", + "Hapi", + "Koa", + "Connect", "Http", - "OnUncaughtException" + "DistDirRewriteFrames" ], "name": "sentry.javascript.nextjs", "packages": [ { "name": "npm:@sentry/nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.3" } ], - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "server_name": "D9M3PY4LQ7.local", - "tags": { - "runtime": "node", - "transaction": "GET /api/test-param-error/[param]" - }, "timestamp": "[[timestamp]]", - "transaction": " " + "transaction": "GET /api/test-param-error/[param]" } ] diff --git a/payload-files/nextjs-14_2_1/route-handlers/_api_test-param-error_[param]--transaction.json b/payload-files/nextjs-14_2_1/route-handlers/_api_test-param-error_[param]--transaction.json index 2f8e330..b65ee00 100644 --- a/payload-files/nextjs-14_2_1/route-handlers/_api_test-param-error_[param]--transaction.json +++ b/payload-files/nextjs-14_2_1/route-handlers/_api_test-param-error_[param]--transaction.json @@ -4,7 +4,7 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "sent_at": "[[ISODateString]]", "trace": { @@ -20,330 +20,6 @@ "type": "transaction" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": " \u001b[37m\u001b[1m○\u001b[22m\u001b[39m Compiling / ...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled / in 3s (2143 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /favicon.ico in 181ms (1216 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success in 130ms (1218 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error in 300ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-success/[param] in 237ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-error/[param] in 134ms (1192 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fapp%2Fapi%2Ftest-param-error%2F%5Bparam%5D%2Froute.ts&methodName=GET%241&arguments=&lineNumber=24&column=86" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Futils%2FhandleCallbackErrors.js&methodName=handleCallbackErrors&arguments=&lineNumber=29&column=26" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=60&column=108" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=61&column=44" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=status.status&arguments=&lineNumber=119&column=15" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=Hub.withScope&arguments=&lineNumber=216&column=28" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=118&column=98" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=102&column=66" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=withScope&arguments=&lineNumber=214&column=18" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=startSpan&arguments=&lineNumber=101&column=70" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=290&column=12" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=50&column=83" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=continueTrace&arguments=&lineNumber=289&column=70" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=43&column=75" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=eval&arguments=&lineNumber=245&column=12" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=withIsolationScope&arguments=&lineNumber=244&column=70" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=Object.apply&arguments=&lineNumber=37&column=78" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fapp%2Fapi%2Ftest-param-error%2F%5Bparam%5D%2Froute.ts&methodName=Object.apply&arguments=&lineNumber=70&column=10" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Futils%2FhandleCallbackErrors.js&methodName=handleCallbackErrors&arguments=&lineNumber=29&column=26" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - }, - { - "category": "http", - "data": { - "method": "GET", - "url": "http://localhost:3000/__nextjs_original-stack-frame?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -369,6 +45,16 @@ "name": "macOS", "version": "14.2" }, + "otel": { + "resource": { + "service.name": "node", + "service.namespace": "sentry", + "service.version": "8.0.0-beta.3", + "telemetry.sdk.language": "nodejs", + "telemetry.sdk.name": "opentelemetry", + "telemetry.sdk.version": "1.23.0" + } + }, "runtime": { "name": "node", "version": "v20.12.1" @@ -376,6 +62,7 @@ "trace": { "data": { "http.response.status_code": 200, + "otel.kind": "INTERNAL", "sentry.op": "http.server", "sentry.origin": "auto.function.nextjs", "sentry.sample_rate": 1, @@ -383,11 +70,9 @@ }, "op": "http.server", "origin": "auto.function.nextjs", - "span_id": "[[ID3]]", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID4]]", "status": "ok", - "tags": { - "http.status_code": "200" - }, "trace_id": "[[ID2]]" } }, @@ -401,14 +86,16 @@ "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", + "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=849afbc4d0a24f309883f0df27432370,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", "pragma": "no-cache", - "referer": "http://localhost:3030/", + "referer": "http://localhost:3030/test-route-handlers", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", + "sentry-trace": "849afbc4d0a24f309883f0df27432370-9004ba82f6434237-1", "user-agent": "[[user-agent]]", "x-forwarded-for": "::ffff:127.0.0.1", "x-forwarded-host": "localhost:3030", @@ -424,514 +111,44 @@ "LinkedErrors", "RequestData", "Console", - "Undici", + "NodeFetch", + "OnUncaughtException", "OnUnhandledRejection", "ContextLines", - "LocalVariables", + "LocalVariablesAsync", "Context", "Modules", - "RewriteFrames", + "Express", + "Fastify", + "Graphql", + "Mongo", + "Mongoose", + "Mysql", + "Mysql2", + "Postgres", + "Nest", + "Hapi", + "Koa", + "Connect", "Http", - "OnUncaughtException" + "DistDirRewriteFrames" ], "name": "sentry.javascript.nextjs", "packages": [ { "name": "npm:@sentry/nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.3" } ], - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "server_name": "D9M3PY4LQ7.local", - "spans": [ - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fapp%2Fapi%2Ftest-param-error%2F%5Bparam%5D%2Froute.ts&methodName=GET%241&arguments=&lineNumber=24&column=86", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID4]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=61&column=44", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID5]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Futils%2FhandleCallbackErrors.js&methodName=handleCallbackErrors&arguments=&lineNumber=29&column=26", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID6]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=60&column=108", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID7]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=status.status&arguments=&lineNumber=119&column=15", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID8]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=118&column=98", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID9]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=Hub.withScope&arguments=&lineNumber=216&column=28", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID10]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=withScope&arguments=&lineNumber=214&column=18", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID11]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=102&column=66", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID12]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID13]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID14]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID15]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=startSpan&arguments=&lineNumber=101&column=70", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID16]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=50&column=83", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID17]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=eval&arguments=&lineNumber=290&column=12", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID18]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Ftracing%2Ftrace.js&methodName=continueTrace&arguments=&lineNumber=289&column=70", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID19]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=eval&arguments=&lineNumber=43&column=75", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID20]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=eval&arguments=&lineNumber=245&column=12", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID21]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fexports.js&methodName=withIsolationScope&arguments=&lineNumber=244&column=70", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID22]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fnode_modules%2F%40sentry%2Fnextjs%2Fesm%2Fcommon%2FwrapRouteHandlerWithSentry.js&methodName=Object.apply&arguments=&lineNumber=37&column=78", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID23]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F.%2Fapp%2Fapi%2Ftest-param-error%2F%5Bparam%5D%2Froute.ts&methodName=Object.apply&arguments=&lineNumber=70&column=10", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID24]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Futils%2FhandleCallbackErrors.js&methodName=handleCallbackErrors&arguments=&lineNumber=29&column=26", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID25]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID26]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=eval&arguments=&lineNumber=49&column=14", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID27]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID28]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fnode%2Fesm%2Fasync%2Fhooks.js&methodName=Object.runWithAsyncContext&arguments=&lineNumber=48&column=25", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID29]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID30]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "http.method": "GET", - "http.query": "?isServer=false&isEdgeServer=false&isAppDirectory=true&errorMessage=Error%3A+This+is+an+error&file=webpack-internal%3A%2F%2F%2F%28rsc%29%2F..%2F..%2Fnode_modules%2F%40sentry%2Fcore%2Fesm%2Fhub.js&methodName=runWithAsyncContext&arguments=&lineNumber=799&column=36", - "sentry.op": "http.client", - "sentry.origin": "auto.http.node.undici" - }, - "description": "GET http://localhost:3000/__nextjs_original-stack-frame", - "op": "http.client", - "origin": "auto.http.node.undici", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID31]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - } - ], + "spans": [], "start_timestamp": "[[timestamp]]", - "tags": { - "http.status_code": "200", - "runtime": "node", - "transaction": "GET /api/test-param-error/[param]" - }, "timestamp": "[[timestamp]]", "transaction": "GET /api/test-param-error/[param]", "transaction_info": { diff --git a/payload-files/nextjs-14_2_1/route-handlers/_api_test-param-success_[param]--transaction.json b/payload-files/nextjs-14_2_1/route-handlers/_api_test-param-success_[param]--transaction.json index f442e1d..4ce7997 100644 --- a/payload-files/nextjs-14_2_1/route-handlers/_api_test-param-success_[param]--transaction.json +++ b/payload-files/nextjs-14_2_1/route-handlers/_api_test-param-success_[param]--transaction.json @@ -4,57 +4,22 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]", + "transaction": "GET /api/test-param-success/[param]" } }, { "type": "transaction" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": " \u001b[37m\u001b[1m○\u001b[22m\u001b[39m Compiling / ...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled / in 3s (2143 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /favicon.ico in 181ms (1216 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success in 130ms (1218 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error in 300ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-success/[param] in 237ms (1190 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -80,6 +45,16 @@ "name": "macOS", "version": "14.2" }, + "otel": { + "resource": { + "service.name": "node", + "service.namespace": "sentry", + "service.version": "8.0.0-beta.3", + "telemetry.sdk.language": "nodejs", + "telemetry.sdk.name": "opentelemetry", + "telemetry.sdk.version": "1.23.0" + } + }, "runtime": { "name": "node", "version": "v20.12.1" @@ -87,6 +62,7 @@ "trace": { "data": { "http.response.status_code": 200, + "otel.kind": "INTERNAL", "sentry.op": "http.server", "sentry.origin": "auto.function.nextjs", "sentry.sample_rate": 1, @@ -97,9 +73,6 @@ "parent_span_id": "[[ID3]]", "span_id": "[[ID4]]", "status": "ok", - "tags": { - "http.status_code": "200" - }, "trace_id": "[[ID2]]" } }, @@ -113,16 +86,16 @@ "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", - "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=2cdc9402e1174cd08ca2f51a4804cd16", + "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=849afbc4d0a24f309883f0df27432370,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", "pragma": "no-cache", - "referer": "http://localhost:3030/", + "referer": "http://localhost:3030/test-route-handlers", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", - "sentry-trace": "2cdc9402e1174cd08ca2f51a4804cd16-abe8d663cfdee8d7", + "sentry-trace": "849afbc4d0a24f309883f0df27432370-9004ba82f6434237-1", "user-agent": "[[user-agent]]", "x-forwarded-for": "::ffff:127.0.0.1", "x-forwarded-host": "localhost:3030", @@ -138,37 +111,44 @@ "LinkedErrors", "RequestData", "Console", - "Undici", + "NodeFetch", + "OnUncaughtException", "OnUnhandledRejection", "ContextLines", - "LocalVariables", + "LocalVariablesAsync", "Context", "Modules", - "RewriteFrames", + "Express", + "Fastify", + "Graphql", + "Mongo", + "Mongoose", + "Mysql", + "Mysql2", + "Postgres", + "Nest", + "Hapi", + "Koa", + "Connect", "Http", - "OnUncaughtException" + "DistDirRewriteFrames" ], "name": "sentry.javascript.nextjs", "packages": [ { "name": "npm:@sentry/nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.3" } ], - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "server_name": "D9M3PY4LQ7.local", "spans": [], "start_timestamp": "[[timestamp]]", - "tags": { - "http.status_code": "200", - "runtime": "node", - "transaction": "GET /api/test-param-success/[param]" - }, "timestamp": "[[timestamp]]", "transaction": "GET /api/test-param-success/[param]", "transaction_info": { diff --git a/payload-files/nextjs-14_2_1/route-handlers/_api_test-success--transaction.json b/payload-files/nextjs-14_2_1/route-handlers/_api_test-success--transaction.json index 24ef240..7a46c6e 100644 --- a/payload-files/nextjs-14_2_1/route-handlers/_api_test-success--transaction.json +++ b/payload-files/nextjs-14_2_1/route-handlers/_api_test-success--transaction.json @@ -4,45 +4,22 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]", + "transaction": "GET /api/test-success" } }, { "type": "transaction" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": " \u001b[37m\u001b[1m○\u001b[22m\u001b[39m Compiling / ...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled / in 3s (2143 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /favicon.ico in 181ms (1216 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success in 130ms (1218 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -68,6 +45,16 @@ "name": "macOS", "version": "14.2" }, + "otel": { + "resource": { + "service.name": "node", + "service.namespace": "sentry", + "service.version": "8.0.0-beta.3", + "telemetry.sdk.language": "nodejs", + "telemetry.sdk.name": "opentelemetry", + "telemetry.sdk.version": "1.23.0" + } + }, "runtime": { "name": "node", "version": "v20.12.1" @@ -75,6 +62,7 @@ "trace": { "data": { "http.response.status_code": 200, + "otel.kind": "INTERNAL", "sentry.op": "http.server", "sentry.origin": "auto.function.nextjs", "sentry.sample_rate": 1, @@ -85,9 +73,6 @@ "parent_span_id": "[[ID3]]", "span_id": "[[ID4]]", "status": "ok", - "tags": { - "http.status_code": "200" - }, "trace_id": "[[ID2]]" } }, @@ -101,16 +86,16 @@ "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", - "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=2cdc9402e1174cd08ca2f51a4804cd16", + "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=849afbc4d0a24f309883f0df27432370,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", "pragma": "no-cache", - "referer": "http://localhost:3030/", + "referer": "http://localhost:3030/test-route-handlers", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", - "sentry-trace": "2cdc9402e1174cd08ca2f51a4804cd16-abe8d663cfdee8d7", + "sentry-trace": "849afbc4d0a24f309883f0df27432370-9004ba82f6434237-1", "user-agent": "[[user-agent]]", "x-forwarded-for": "::ffff:127.0.0.1", "x-forwarded-host": "localhost:3030", @@ -126,37 +111,44 @@ "LinkedErrors", "RequestData", "Console", - "Undici", + "NodeFetch", + "OnUncaughtException", "OnUnhandledRejection", "ContextLines", - "LocalVariables", + "LocalVariablesAsync", "Context", "Modules", - "RewriteFrames", + "Express", + "Fastify", + "Graphql", + "Mongo", + "Mongoose", + "Mysql", + "Mysql2", + "Postgres", + "Nest", + "Hapi", + "Koa", + "Connect", "Http", - "OnUncaughtException" + "DistDirRewriteFrames" ], "name": "sentry.javascript.nextjs", "packages": [ { "name": "npm:@sentry/nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.3" } ], - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "server_name": "D9M3PY4LQ7.local", "spans": [], "start_timestamp": "[[timestamp]]", - "tags": { - "http.status_code": "200", - "runtime": "node", - "transaction": "GET /api/test-success" - }, "timestamp": "[[timestamp]]", "transaction": "GET /api/test-success", "transaction_info": { diff --git a/payload-files/nextjs-14_2_1/route-handlers/_api_test-success-manual--transaction.json b/payload-files/nextjs-14_2_1/route-handlers/_api_test-success-manual--transaction.json index 7d0a0c3..810a7e3 100644 --- a/payload-files/nextjs-14_2_1/route-handlers/_api_test-success-manual--transaction.json +++ b/payload-files/nextjs-14_2_1/route-handlers/_api_test-success-manual--transaction.json @@ -4,69 +4,22 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]", + "transaction": "GET /api/test-success-manual" } }, { "type": "transaction" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": " \u001b[37m\u001b[1m○\u001b[22m\u001b[39m Compiling / ...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled / in 3s (2143 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /favicon.ico in 181ms (1216 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success in 130ms (1218 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-error in 300ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-success/[param] in 237ms (1190 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-param-error/[param] in 134ms (1192 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": " \u001b[32m\u001b[1m✓\u001b[22m\u001b[39m Compiled /api/test-success-manual in 165ms (1192 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -92,6 +45,16 @@ "name": "macOS", "version": "14.2" }, + "otel": { + "resource": { + "service.name": "node", + "service.namespace": "sentry", + "service.version": "8.0.0-beta.3", + "telemetry.sdk.language": "nodejs", + "telemetry.sdk.name": "opentelemetry", + "telemetry.sdk.version": "1.23.0" + } + }, "runtime": { "name": "node", "version": "v20.12.1" @@ -99,6 +62,7 @@ "trace": { "data": { "http.response.status_code": 200, + "otel.kind": "INTERNAL", "sentry.op": "http.server", "sentry.origin": "auto.function.nextjs", "sentry.sample_rate": 1, @@ -109,9 +73,6 @@ "parent_span_id": "[[ID3]]", "span_id": "[[ID4]]", "status": "ok", - "tags": { - "http.status_code": "200" - }, "trace_id": "[[ID2]]" } }, @@ -125,16 +86,16 @@ "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", - "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=2cdc9402e1174cd08ca2f51a4804cd16", + "baggage": "sentry-environment=qa,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=849afbc4d0a24f309883f0df27432370,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", "pragma": "no-cache", - "referer": "http://localhost:3030/", + "referer": "http://localhost:3030/test-route-handlers", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", - "sentry-trace": "2cdc9402e1174cd08ca2f51a4804cd16-abe8d663cfdee8d7", + "sentry-trace": "849afbc4d0a24f309883f0df27432370-9004ba82f6434237-1", "user-agent": "[[user-agent]]", "x-forwarded-for": "::ffff:127.0.0.1", "x-forwarded-host": "localhost:3030", @@ -150,33 +111,46 @@ "LinkedErrors", "RequestData", "Console", - "Undici", + "NodeFetch", + "OnUncaughtException", "OnUnhandledRejection", "ContextLines", - "LocalVariables", + "LocalVariablesAsync", "Context", "Modules", - "RewriteFrames", + "Express", + "Fastify", + "Graphql", + "Mongo", + "Mongoose", + "Mysql", + "Mysql2", + "Postgres", + "Nest", + "Hapi", + "Koa", + "Connect", "Http", - "OnUncaughtException" + "DistDirRewriteFrames" ], "name": "sentry.javascript.nextjs", "packages": [ { "name": "npm:@sentry/nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.3" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.3" } ], - "version": "7.110.1" + "version": "8.0.0-beta.3" }, "server_name": "D9M3PY4LQ7.local", "spans": [ { "data": { + "otel.kind": "INTERNAL", "sentry.origin": "manual" }, "description": "test-span", @@ -184,11 +158,13 @@ "parent_span_id": "[[ID4]]", "span_id": "[[ID5]]", "start_timestamp": "[[timestamp]]", + "status": "ok", "timestamp": "[[timestamp]]", "trace_id": "[[ID2]]" }, { "data": { + "otel.kind": "INTERNAL", "sentry.origin": "manual" }, "description": "child-span", @@ -196,16 +172,12 @@ "parent_span_id": "[[ID5]]", "span_id": "[[ID6]]", "start_timestamp": "[[timestamp]]", + "status": "ok", "timestamp": "[[timestamp]]", "trace_id": "[[ID2]]" } ], "start_timestamp": "[[timestamp]]", - "tags": { - "http.status_code": "200", - "runtime": "node", - "transaction": "GET /api/test-success-manual" - }, "timestamp": "[[timestamp]]", "transaction": "GET /api/test-success-manual", "transaction_info": { diff --git a/yarn.lock b/yarn.lock index e496f24..a746f45 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2692,21 +2692,30 @@ __metadata: languageName: node linkType: hard -"@opentelemetry/api@npm:^1.0.0, @opentelemetry/api@npm:^1.8, @opentelemetry/api@npm:^1.8.0, @opentelemetry/api@npm:^1.9.0": +"@opentelemetry/api@npm:^1.0.0, @opentelemetry/api@npm:^1.6.0, @opentelemetry/api@npm:^1.8.0": + version: 1.8.0 + resolution: "@opentelemetry/api@npm:1.8.0" + checksum: 10c0/66d5504bfbf9c19a14ea549f5fca975a73a5e1e8a1e40a6dc2d662893c942b9ba66c009262816dee2b9ffd0267acd707ec692eba20db11a09d4ee114c00dc161 + languageName: node + linkType: hard + +"@opentelemetry/api@npm:^1.8, @opentelemetry/api@npm:^1.9.0": version: 1.9.0 resolution: "@opentelemetry/api@npm:1.9.0" checksum: 10c0/9aae2fe6e8a3a3eeb6c1fdef78e1939cf05a0f37f8a4fae4d6bf2e09eb1e06f966ece85805626e01ba5fab48072b94f19b835449e58b6d26720ee19a58298add languageName: node linkType: hard -"@opentelemetry/api@npm:^1.6.0": - version: 1.8.0 - resolution: "@opentelemetry/api@npm:1.8.0" - checksum: 10c0/66d5504bfbf9c19a14ea549f5fca975a73a5e1e8a1e40a6dc2d662893c942b9ba66c009262816dee2b9ffd0267acd707ec692eba20db11a09d4ee114c00dc161 +"@opentelemetry/context-async-hooks@npm:^1.23.0": + version: 1.23.0 + resolution: "@opentelemetry/context-async-hooks@npm:1.23.0" + peerDependencies: + "@opentelemetry/api": ">=1.0.0 <1.9.0" + checksum: 10c0/665a47988550290ea6104dc8374e8f9a8a439af02f9e1c218f7cac9aa62f70b80de2057717aae984a8db28e97c9abdd003c85c57047c5893b3287f539f409f1c languageName: node linkType: hard -"@opentelemetry/context-async-hooks@npm:^1.23.0, @opentelemetry/context-async-hooks@npm:^1.25.0": +"@opentelemetry/context-async-hooks@npm:^1.25.0": version: 1.25.0 resolution: "@opentelemetry/context-async-hooks@npm:1.25.0" peerDependencies: @@ -2737,7 +2746,7 @@ __metadata: languageName: node linkType: hard -"@opentelemetry/core@npm:1.23.0, @opentelemetry/core@npm:^1.1.0, @opentelemetry/core@npm:^1.8.0": +"@opentelemetry/core@npm:1.23.0, @opentelemetry/core@npm:^1.1.0, @opentelemetry/core@npm:^1.23.0, @opentelemetry/core@npm:^1.8.0": version: 1.23.0 resolution: "@opentelemetry/core@npm:1.23.0" dependencies: @@ -2748,7 +2757,7 @@ __metadata: languageName: node linkType: hard -"@opentelemetry/core@npm:1.25.0, @opentelemetry/core@npm:^1.23.0, @opentelemetry/core@npm:^1.25.0": +"@opentelemetry/core@npm:1.25.0, @opentelemetry/core@npm:^1.25.0": version: 1.25.0 resolution: "@opentelemetry/core@npm:1.25.0" dependencies: @@ -3242,7 +3251,7 @@ __metadata: languageName: node linkType: hard -"@opentelemetry/resources@npm:1.23.0": +"@opentelemetry/resources@npm:1.23.0, @opentelemetry/resources@npm:^1.23.0": version: 1.23.0 resolution: "@opentelemetry/resources@npm:1.23.0" dependencies: @@ -3254,7 +3263,7 @@ __metadata: languageName: node linkType: hard -"@opentelemetry/resources@npm:1.25.0, @opentelemetry/resources@npm:^1.23.0, @opentelemetry/resources@npm:^1.25.0": +"@opentelemetry/resources@npm:1.25.0, @opentelemetry/resources@npm:^1.25.0": version: 1.25.0 resolution: "@opentelemetry/resources@npm:1.25.0" dependencies: @@ -3292,7 +3301,7 @@ __metadata: languageName: node linkType: hard -"@opentelemetry/sdk-trace-base@npm:^1.22, @opentelemetry/sdk-trace-base@npm:^1.23.0, @opentelemetry/sdk-trace-base@npm:^1.25.0": +"@opentelemetry/sdk-trace-base@npm:^1.22, @opentelemetry/sdk-trace-base@npm:^1.25.0": version: 1.25.0 resolution: "@opentelemetry/sdk-trace-base@npm:1.25.0" dependencies: @@ -3305,6 +3314,19 @@ __metadata: languageName: node linkType: hard +"@opentelemetry/sdk-trace-base@npm:^1.23.0": + version: 1.23.0 + resolution: "@opentelemetry/sdk-trace-base@npm:1.23.0" + dependencies: + "@opentelemetry/core": "npm:1.23.0" + "@opentelemetry/resources": "npm:1.23.0" + "@opentelemetry/semantic-conventions": "npm:1.23.0" + peerDependencies: + "@opentelemetry/api": ">=1.0.0 <1.9.0" + checksum: 10c0/19a9e925e43c737058c75f5afc8eb9d39f0bb8547dbe112c05646da453a3a7c5ccf9e8513f1936f26447b47c40f6a4c1d2d03500f882f9e9e44c1ea373a7e8a7 + languageName: node + linkType: hard + "@opentelemetry/semantic-conventions@npm:1.20.0": version: 1.20.0 resolution: "@opentelemetry/semantic-conventions@npm:1.20.0" @@ -3319,21 +3341,32 @@ __metadata: languageName: node linkType: hard -"@opentelemetry/semantic-conventions@npm:1.23.0, @opentelemetry/semantic-conventions@npm:^1.17.0": +"@opentelemetry/semantic-conventions@npm:1.23.0, @opentelemetry/semantic-conventions@npm:^1.0.0, @opentelemetry/semantic-conventions@npm:^1.17.0, @opentelemetry/semantic-conventions@npm:^1.22.0, @opentelemetry/semantic-conventions@npm:^1.23.0": version: 1.23.0 resolution: "@opentelemetry/semantic-conventions@npm:1.23.0" checksum: 10c0/2712f3874a45607bc7024e0d1a01c91a7e4671e7b925e2fcc79227f350c16c59a29ba36d8ab5f0842fe003ff464d24ab576033b35390316886bb120477f96ca6 languageName: node linkType: hard -"@opentelemetry/semantic-conventions@npm:1.25.0, @opentelemetry/semantic-conventions@npm:^1.0.0, @opentelemetry/semantic-conventions@npm:^1.22.0, @opentelemetry/semantic-conventions@npm:^1.23.0, @opentelemetry/semantic-conventions@npm:^1.25.0": +"@opentelemetry/semantic-conventions@npm:1.25.0, @opentelemetry/semantic-conventions@npm:^1.25.0": version: 1.25.0 resolution: "@opentelemetry/semantic-conventions@npm:1.25.0" checksum: 10c0/e4add5dff8e80edbae0821cd925203f1403fe38a3159eec7eb395484dd23b79f5b7c7f804829e9a28465be4ec2f0e2a20f307621c395471f9e36a2b07d189e90 languageName: node linkType: hard -"@opentelemetry/sql-common@npm:^0.40.0, @opentelemetry/sql-common@npm:^0.40.1": +"@opentelemetry/sql-common@npm:^0.40.0": + version: 0.40.0 + resolution: "@opentelemetry/sql-common@npm:0.40.0" + dependencies: + "@opentelemetry/core": "npm:^1.1.0" + peerDependencies: + "@opentelemetry/api": ^1.1.0 + checksum: 10c0/c82454ca9ce69564f8a19e9d47bfb6b7fa96720dc178c04df56de0c7666fba535f62c638b2c3f03832f61872adf258178c7f9787823d64e0483ad780a25daeff + languageName: node + linkType: hard + +"@opentelemetry/sql-common@npm:^0.40.1": version: 0.40.1 resolution: "@opentelemetry/sql-common@npm:0.40.1" dependencies: @@ -4093,22 +4126,6 @@ __metadata: languageName: node linkType: hard -"@sentry/cli@npm:^1.77.1": - version: 1.77.3 - resolution: "@sentry/cli@npm:1.77.3" - dependencies: - https-proxy-agent: "npm:^5.0.0" - mkdirp: "npm:^0.5.5" - node-fetch: "npm:^2.6.7" - progress: "npm:^2.0.3" - proxy-from-env: "npm:^1.1.0" - which: "npm:^2.0.2" - bin: - sentry-cli: bin/sentry-cli - checksum: 10c0/b8c584b31b210a28894a8c4269dccc6eaf57fef51405533a18758609fa5b7e249807f8f4111f2f75e8b04e81865a4a758d1c487e668910e1d1b126c3f52aa782 - languageName: node - linkType: hard - "@sentry/cli@npm:^2.17.0, @sentry/cli@npm:^2.28.0": version: 2.32.1 resolution: "@sentry/cli@npm:2.32.1" @@ -4291,34 +4308,6 @@ __metadata: languageName: node linkType: hard -"@sentry/nextjs@npm:7.110.1": - version: 7.110.1 - resolution: "@sentry/nextjs@npm:7.110.1" - dependencies: - "@rollup/plugin-commonjs": "npm:24.0.0" - "@sentry/core": "npm:7.110.1" - "@sentry/integrations": "npm:7.110.1" - "@sentry/node": "npm:7.110.1" - "@sentry/react": "npm:7.110.1" - "@sentry/types": "npm:7.110.1" - "@sentry/utils": "npm:7.110.1" - "@sentry/vercel-edge": "npm:7.110.1" - "@sentry/webpack-plugin": "npm:1.21.0" - chalk: "npm:3.0.0" - resolve: "npm:1.22.8" - rollup: "npm:2.78.0" - stacktrace-parser: "npm:^0.1.10" - peerDependencies: - next: ^10.0.8 || ^11.0 || ^12.0 || ^13.0 || ^14.0 - react: 16.x || 17.x || 18.x - webpack: ">= 4.0.0" - peerDependenciesMeta: - webpack: - optional: true - checksum: 10c0/03df9795ea6ed8e8fa1baa5af6bc7def89d9c06e36951eb7efcbbb463a16d0f82012bcb65769e722a68abac42308d68d195747a26f84d3eadd463617920b5e07 - languageName: node - linkType: hard - "@sentry/nextjs@npm:8.9.2": version: 8.9.2 resolution: "@sentry/nextjs@npm:8.9.2" @@ -4739,18 +4728,6 @@ __metadata: languageName: node linkType: hard -"@sentry/vercel-edge@npm:7.110.1": - version: 7.110.1 - resolution: "@sentry/vercel-edge@npm:7.110.1" - dependencies: - "@sentry-internal/tracing": "npm:7.110.1" - "@sentry/core": "npm:7.110.1" - "@sentry/types": "npm:7.110.1" - "@sentry/utils": "npm:7.110.1" - checksum: 10c0/de07fc5895e3bdef2d111951498a345e12e951d029dc1128ee17f5dbea92c227cca49ec45066a75c68dfe28efb8a3f7c38e6957f5b99dc137bed1e01bb14c787 - languageName: node - linkType: hard - "@sentry/vercel-edge@npm:8.9.2": version: 8.9.2 resolution: "@sentry/vercel-edge@npm:8.9.2" @@ -4781,16 +4758,6 @@ __metadata: languageName: node linkType: hard -"@sentry/webpack-plugin@npm:1.21.0": - version: 1.21.0 - resolution: "@sentry/webpack-plugin@npm:1.21.0" - dependencies: - "@sentry/cli": "npm:^1.77.1" - webpack-sources: "npm:^2.0.0 || ^3.0.0" - checksum: 10c0/743650dc65c06c4a682d4e80ca2dee3234c30a2d5f66d2f9702e6e5041e20f6151a604fcc76d5f08afb6c7a91feec71719637916a5674fefd00fc1dda0560c7f - languageName: node - linkType: hard - "@sentry/webpack-plugin@npm:2.18.0": version: 2.18.0 resolution: "@sentry/webpack-plugin@npm:2.18.0" @@ -7997,7 +7964,7 @@ __metadata: languageName: node linkType: hard -"define-properties@npm:^1.2.0, define-properties@npm:^1.2.1": +"define-properties@npm:^1.1.3, define-properties@npm:^1.2.0, define-properties@npm:^1.2.1": version: 1.2.1 resolution: "define-properties@npm:1.2.1" dependencies: @@ -10125,12 +10092,11 @@ __metadata: linkType: hard "globalthis@npm:^1.0.3": - version: 1.0.4 - resolution: "globalthis@npm:1.0.4" + version: 1.0.3 + resolution: "globalthis@npm:1.0.3" dependencies: - define-properties: "npm:^1.2.1" - gopd: "npm:^1.0.1" - checksum: 10c0/9d156f313af79d80b1566b93e19285f481c591ad6d0d319b4be5e03750d004dde40a39a0f26f7e635f9007a3600802f53ecd85a759b86f109e80a5f705e01846 + define-properties: "npm:^1.1.3" + checksum: 10c0/0db6e9af102a5254630351557ac15e6909bc7459d3e3f6b001e59fe784c96d31108818f032d9095739355a88467459e6488ff16584ee6250cd8c27dec05af4b0 languageName: node linkType: hard @@ -10687,7 +10653,7 @@ __metadata: languageName: node linkType: hard -"import-in-the-middle@npm:1.8.0, import-in-the-middle@npm:^1.7.2": +"import-in-the-middle@npm:1.8.0": version: 1.8.0 resolution: "import-in-the-middle@npm:1.8.0" dependencies: @@ -10699,6 +10665,18 @@ __metadata: languageName: node linkType: hard +"import-in-the-middle@npm:^1.7.2": + version: 1.7.3 + resolution: "import-in-the-middle@npm:1.7.3" + dependencies: + acorn: "npm:^8.8.2" + acorn-import-assertions: "npm:^1.9.0" + cjs-module-lexer: "npm:^1.2.2" + module-details-from-path: "npm:^1.0.3" + checksum: 10c0/68a904ba5893670a212a9e6b651fb535feab274cdd86b38a095a2a9ff3d344306fa6a1b4aa2dc21bfa3206f81912ad1b633b5da5e81ddfbbce4a5d62900bf65f + languageName: node + linkType: hard + "import-meta-resolve@npm:^4.0.0, import-meta-resolve@npm:^4.1.0": version: 4.1.0 resolution: "import-meta-resolve@npm:4.1.0" @@ -11363,15 +11341,15 @@ __metadata: linkType: hard "joi@npm:^17.3.0": - version: 17.13.1 - resolution: "joi@npm:17.13.1" + version: 17.12.3 + resolution: "joi@npm:17.12.3" dependencies: "@hapi/hoek": "npm:^9.3.0" "@hapi/topo": "npm:^5.1.0" "@sideway/address": "npm:^4.1.5" "@sideway/formula": "npm:^3.0.1" "@sideway/pinpoint": "npm:^2.0.0" - checksum: 10c0/485627809c5e424fc4af4310e06bc31a34fe10635b0bdbfcc425336db5e06b1da3ff8b35101878ffcbcd94c0187e7134c935fb2d1aeba641c92d7f505e6ffd8d + checksum: 10c0/818e51bd2d219339cff91f9d6fef8bab2da396e80a051cf73fb8ce7362c191af395bfa2d0e54eaa9c9cb8d5afafddb54eb768bc3068ab33908cbd5a1697e7d3e languageName: node linkType: hard @@ -13347,7 +13325,7 @@ __metadata: languageName: node linkType: hard -"mkdirp@npm:^0.5.1, mkdirp@npm:^0.5.4, mkdirp@npm:^0.5.5": +"mkdirp@npm:^0.5.1, mkdirp@npm:^0.5.4": version: 0.5.6 resolution: "mkdirp@npm:0.5.6" dependencies: @@ -13679,7 +13657,7 @@ __metadata: version: 0.0.0-use.local resolution: "nextjs-14_2_1-test-application@workspace:apps/nextjs-14_2_1" dependencies: - "@sentry/nextjs": "npm:7.110.1" + "@sentry/nextjs": "npm:8.9.2" "@types/node": "npm:^20" "@types/react": "npm:^18" "@types/react-dom": "npm:^18" @@ -15817,20 +15795,6 @@ __metadata: languageName: node linkType: hard -"rollup@npm:2.78.0": - version: 2.78.0 - resolution: "rollup@npm:2.78.0" - dependencies: - fsevents: "npm:~2.3.2" - dependenciesMeta: - fsevents: - optional: true - bin: - rollup: dist/bin/rollup - checksum: 10c0/5bc5f0298f4c9eb9de0906c318cf396d24a32db0d1f21d46aaea04d4fad5c4a49c475cf49cde346bf3cb6ef5f0668d2451e83f96352639d186c3e34ef88f663e - languageName: node - linkType: hard - "rollup@npm:3.29.4": version: 3.29.4 resolution: "rollup@npm:3.29.4" @@ -16558,9 +16522,9 @@ __metadata: linkType: hard "spdx-license-ids@npm:^3.0.0": - version: 3.0.18 - resolution: "spdx-license-ids@npm:3.0.18" - checksum: 10c0/c64ba03d4727191c8fdbd001f137d6ab51386c350d5516be8a4576c2e74044cb27bc8a758f6a04809da986cc0b14213f069b04de72caccecbc9f733753ccde32 + version: 3.0.17 + resolution: "spdx-license-ids@npm:3.0.17" + checksum: 10c0/ddf9477b5afc70f1a7d3bf91f0b8e8a1c1b0fa65d2d9a8b5c991b1a2ba91b693d8b9749700119d5ce7f3fbf307ac421087ff43d321db472605e98a5804f80eac languageName: node linkType: hard @@ -18408,7 +18372,7 @@ __metadata: languageName: node linkType: hard -"webpack-sources@npm:3.2.3, webpack-sources@npm:^2.0.0 || ^3.0.0, webpack-sources@npm:^3.2.3": +"webpack-sources@npm:3.2.3, webpack-sources@npm:^3.2.3": version: 3.2.3 resolution: "webpack-sources@npm:3.2.3" checksum: 10c0/2ef63d77c4fad39de4a6db17323d75eb92897b32674e97d76f0a1e87c003882fc038571266ad0ef581ac734cbe20952912aaa26155f1905e96ce251adbb1eb4e