diff --git a/apps/nextjs-13_2_0/app/api/test-local-variables-uncaught/route.ts b/apps/nextjs-13_2_0/app/api/test-local-variables-uncaught/route.ts index 3b1a1ca..d1643d3 100644 --- a/apps/nextjs-13_2_0/app/api/test-local-variables-uncaught/route.ts +++ b/apps/nextjs-13_2_0/app/api/test-local-variables-uncaught/route.ts @@ -1,3 +1,5 @@ +export const dynamic = 'force-dynamic'; + export async function GET() { const randomVariableToRecord = 'LOCAL_VARIABLE'; throw new Error(`Uncaught Local Variable Error - ${JSON.stringify({ randomVariableToRecord })}`); diff --git a/apps/nextjs-13_2_0/instrumentation.ts b/apps/nextjs-13_2_0/instrumentation.ts new file mode 100644 index 0000000..7a88b36 --- /dev/null +++ b/apps/nextjs-13_2_0/instrumentation.ts @@ -0,0 +1,13 @@ +import * as Sentry from '@sentry/nextjs'; + +export function register() { + if (process.env.NEXT_RUNTIME === 'nodejs' || process.env.NEXT_RUNTIME === 'edge') { + Sentry.init({ + environment: 'qa', // dynamic sampling bias to keep transactions + dsn: process.env.SENTRY_DSN, + includeLocalVariables: true, + tunnel: `http://localhost:3031/`, // proxy server + tracesSampleRate: 1, + }); + } +} diff --git a/apps/nextjs-13_2_0/next.config.js b/apps/nextjs-13_2_0/next.config.js index 825f678..c8a9bfe 100644 --- a/apps/nextjs-13_2_0/next.config.js +++ b/apps/nextjs-13_2_0/next.config.js @@ -4,6 +4,7 @@ const { withSentryConfig } = require('@sentry/nextjs'); const nextConfig = { experimental: { appDir: true, + instrumentationHook: true, }, }; diff --git a/apps/nextjs-13_2_0/package.json b/apps/nextjs-13_2_0/package.json index d1e220b..79066f0 100644 --- a/apps/nextjs-13_2_0/package.json +++ b/apps/nextjs-13_2_0/package.json @@ -9,7 +9,7 @@ "lint": "next lint" }, "dependencies": { - "@sentry/nextjs": "7.110.1", + "@sentry/nextjs": "8.0.0-beta.4", "@types/node": "20.12.7", "@types/react": "18.2.79", "@types/react-dom": "18.2.25", diff --git a/apps/nextjs-13_2_0/sentry.edge.config.ts b/apps/nextjs-13_2_0/sentry.edge.config.ts deleted file mode 100644 index d2c4385..0000000 --- a/apps/nextjs-13_2_0/sentry.edge.config.ts +++ /dev/null @@ -1,9 +0,0 @@ -import * as Sentry from '@sentry/nextjs'; - -Sentry.init({ - environment: 'qa', // dynamic sampling bias to keep transactions - dsn: process.env.SENTRY_DSN, - includeLocalVariables: true, - tunnel: `http://localhost:3031/`, // proxy server - tracesSampleRate: 1, -}); diff --git a/apps/nextjs-13_2_0/sentry.server.config.ts b/apps/nextjs-13_2_0/sentry.server.config.ts deleted file mode 100644 index d2c4385..0000000 --- a/apps/nextjs-13_2_0/sentry.server.config.ts +++ /dev/null @@ -1,9 +0,0 @@ -import * as Sentry from '@sentry/nextjs'; - -Sentry.init({ - environment: 'qa', // dynamic sampling bias to keep transactions - dsn: process.env.SENTRY_DSN, - includeLocalVariables: true, - tunnel: `http://localhost:3031/`, // proxy server - tracesSampleRate: 1, -}); diff --git a/payload-files/nextjs-13_2_0/_api_test-error--event.json b/payload-files/nextjs-13_2_0/_api_test-error--event.json deleted file mode 100644 index 396332b..0000000 --- a/payload-files/nextjs-13_2_0/_api_test-error--event.json +++ /dev/null @@ -1,1286 +0,0 @@ -[ - { - "dsn": "[[dsn]]", - "event_id": "[[ID1]]", - "sdk": { - "name": "sentry.javascript.nextjs", - "version": "7.110.1" - }, - "sent_at": "[[ISODateString]]", - "trace": { - "environment": "qa", - "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" - } - }, - { - "type": "event" - }, - { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled client and server successfully in 255 ms (1321 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 91 ms (502 modules)", - "timestamp": "[[timestamp]]" - } - ], - "contexts": { - "app": { - "app_memory": "[[highNumber]]", - "app_start_time": "[[ISODateString]]" - }, - "cloud_resource": {}, - "culture": { - "locale": "en-US", - "timezone": "Europe/Vienna" - }, - "device": { - "arch": "arm64", - "boot_time": "[[ISODateString]]", - "cpu_description": "Apple M1 Pro", - "free_memory": "[[highNumber]]", - "memory_size": "[[highNumber]]", - "processor_count": 10, - "processor_frequency": "[[highNumber]]" - }, - "os": { - "build": "23C64", - "kernel_version": "23.2.0", - "name": "macOS", - "version": "14.2" - }, - "runtime": { - "name": "node", - "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]]" - } - }, - "environment": "qa", - "event_id": "[[ID1]]", - "exception": { - "values": [ - { - "mechanism": { - "handled": true, - "type": "generic" - }, - "stacktrace": { - "frames": [ - { - "colno": 36, - "context_line": " const cacheEntry = await responseGenerator(resolved, !!cachedResponse);", - "filename": "[[FILENAME1]]", - "function": "", - "in_app": false, - "lineno": 83, - "module": "next.dist.server.response-cache:index", - "post_context": [ - " const resolveValue = cacheEntry === null ? null : {", - " ...cacheEntry,", - " isMiss: !cachedResponse", - " };", - " // for manual revalidate wait to resolve until cache is set", - " if (!context.isManualRevalidate) {", - " resolve1(resolveValue);" - ], - "pre_context": [ - " });", - " if (!cachedResponse.isStale || context.isPrefetch) {", - " // The cached value is still valid, so we don't need", - " // to update it yet.", - " return;", - " }", - " }" - ] - }, - { - "colno": 28, - "context_line": " const result = await doRender();", - "filename": "[[FILENAME2]]", - "function": "cacheEntry1.responseCache.get.incrementalCache.incrementalCache", - "in_app": false, - "lineno": 926, - "module": "next.dist.server:base-server", - "post_context": [ - " if (!result) {", - " return null;", - " }", - " return {", - " ...result,", - " revalidate: result.revalidate !== undefined ? result.revalidate : /* default to minimum revalidate (this should be an invariant) */ 1", - " };" - ], - "pre_context": [ - " }", - " // Prevent caching this result", - " delete result.revalidate;", - " return result;", - " }", - " }", - " }" - ] - }, - { - "colno": 32, - "context_line": " let response = await this.handlers.handle(match, req, res, context, isSSG);", - "filename": "[[FILENAME2]]", - "function": "doRender", - "in_app": false, - "lineno": 743, - "module": "next.dist.server:base-server", - "post_context": [ - " if (response) {", - " if (isSSG && process.env.NEXT_RUNTIME !== \"edge\") {", - " const blob = await response.blob();", - " const headers = Object.fromEntries(response.headers);", - " if (!headers[\"content-type\"] && blob.type) {", - " headers[\"content-type\"] = blob.type;", - " }" - ], - "pre_context": [ - " const supportsDynamicHTML = !(isSSG || hasStaticPaths);", - " const match = pathname !== \"/_error\" && !is404Page && !is500Page ? (0, _requestMeta).getRequestMeta(req, \"_nextMatch\") : undefined;", - " if (match) {", - " const context = {", - " supportsDynamicHTML,", - " incrementalCache", - " };" - ] - }, - { - "colno": 24, - "context_line": " const result = await handler.handle(match, req, res, context, bubbleResult);", - "filename": "[[FILENAME3]]", - "function": "RouteHandlerManager.handle", - "in_app": false, - "lineno": 16, - "module": "next.dist.server.future.route-handler-managers:route-handler-manager", - "post_context": [ - " if (bubbleResult) {", - " return result;", - " }", - " return true;", - " }", - "}", - "exports.RouteHandlerManager = RouteHandlerManager;" - ], - "pre_context": [ - " throw new Error(\"Invariant: duplicate route handler added for kind\");", - " }", - " this.handlers[kind] = handler;", - " }", - " async handle(match, req, res, context, bubbleResult) {", - " const handler = this.handlers[match.definition.kind];", - " if (!handler) return false;" - ] - }, - { - "colno": 5, - "filename": "[[FILENAME4]]", - "function": "process.processTicksAndRejections", - "in_app": false, - "lineno": 95, - "module": "task_queues", - "platform": "nodejs" - }, - { - "colno": 41, - "context_line": " const response = await this.execute(match, appRouteModule, req, res, context);", - "filename": "[[FILENAME5]]", - "function": "AppRouteRouteHandler.handle", - "in_app": false, - "lineno": 348, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " if (bubbleResult) {", - " return response;", - " }", - " // Send the response back to the response.", - " await sendResponse(req, res, response);", - " } catch (err) {", - " const response = resolveHandlerError(err, bubbleResult);" - ], - "pre_context": [ - " }", - " async handle(match, req, res, context, bubbleResult) {", - " try {", - " // Load the module using the module loader.", - " const appRouteModule = await this.moduleLoader.load(match.definition.filename);", - " (0, _patchFetch).patchFetch(appRouteModule);", - " // Execute the route to get the response." - ] - }, - { - "colno": 69, - "context_line": " const response = await this.requestAsyncLocalStorageWrapper.wrap(requestAsyncStorage, {", - "filename": "[[FILENAME5]]", - "function": "AppRouteRouteHandler.execute", - "in_app": false, - "lineno": 214, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " req: req.originalRequest,", - " res: res.originalResponse", - " }, ()=>this.staticAsyncLocalStorageWrapper.wrap(staticGenerationAsyncStorage, {", - " pathname: definition.pathname,", - " renderOpts: context || {}", - " }, ()=>{", - " const _req = request ? request : wrapRequest(req);" - ], - "pre_context": [ - " request) {", - " // This is added by the webpack loader, we load it directly from the module.", - " const { requestAsyncStorage , staticGenerationAsyncStorage } = module;", - " // Get the handler function for the given method.", - " const handle = this.resolve(req.method, module);", - " // Run the handler with the request AsyncLocalStorage to inject the helper", - " // support." - ] - }, - { - "colno": 43, - "context_line": " return RequestAsyncStorageWrapper.wrap(storage, context, callback);", - "filename": "[[FILENAME6]]", - "function": "RequestAsyncStorageWrapper.wrap", - "in_app": false, - "lineno": 30, - "module": "next.dist.server.async-storage:request-async-storage-wrapper", - "post_context": [ - " }", - " /**", - " * @deprecated instance method should be used in favor of the static method", - " */ static wrap(storage, { req , res , renderOpts }, callback) {", - " // Reads of this are cached on the `req` object, so this should resolve", - " // instantly. There's no need to pass this data down from a previous", - " // invoke, where we'd have to consider server & serverless." - ], - "pre_context": [ - " * store using hooks.", - " *", - " * @param storage underlying storage object returned by the module", - " * @param context context to seed the store", - " * @param callback function to call within the scope of the context", - " * @returns the result returned by the callback", - " */ wrap(storage, context, callback) {" - ] - }, - { - "colno": 24, - "context_line": " return storage.run(store, callback);", - "filename": "[[FILENAME6]]", - "function": "RequestAsyncStorageWrapper.wrap", - "in_app": false, - "lineno": 65, - "module": "next.dist.server.async-storage:request-async-storage-wrapper", - "post_context": [ - " }", - "}", - "exports.RequestAsyncStorageWrapper = RequestAsyncStorageWrapper;", - "", - "//# sourceMappingURL=request-async-storage-wrapper.js.map" - ], - "pre_context": [ - " }", - " });", - " }", - " return cachedCookiesInstance;", - " },", - " previewData", - " };" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 52, - "context_line": " }, ()=>this.staticAsyncLocalStorageWrapper.wrap(staticGenerationAsyncStorage, {", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 217, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " pathname: definition.pathname,", - " renderOpts: context || {}", - " }, ()=>{", - " const _req = request ? request : wrapRequest(req);", - " // We can currently only statically optimize if only GET/HEAD", - " // are used as a Prerender can't be used conditionally based", - " // on the method currently" - ], - "pre_context": [ - " // Get the handler function for the given method.", - " const handle = this.resolve(req.method, module);", - " // Run the handler with the request AsyncLocalStorage to inject the helper", - " // support.", - " const response = await this.requestAsyncLocalStorageWrapper.wrap(requestAsyncStorage, {", - " req: req.originalRequest,", - " res: res.originalResponse" - ] - }, - { - "colno": 52, - "context_line": " return StaticGenerationAsyncStorageWrapper.wrap(storage, context, callback);", - "filename": "[[FILENAME8]]", - "function": "StaticGenerationAsyncStorageWrapper.wrap", - "in_app": false, - "lineno": 7, - "module": "next.dist.server.async-storage:static-generation-async-storage-wrapper", - "post_context": [ - " }", - " /**", - " * @deprecated instance method should be used in favor of the static method", - " */ static wrap(storage, { pathname , renderOpts }, callback) {", - " /**", - " * Rules of Static & Dynamic HTML:", - " *" - ], - "pre_context": [ - "\"use strict\";", - "Object.defineProperty(exports, \"__esModule\", {", - " value: true", - "});", - "class StaticGenerationAsyncStorageWrapper {", - " wrap(storage, context, callback) {" - ] - }, - { - "colno": 24, - "context_line": " return storage.run(store, callback);", - "filename": "[[FILENAME8]]", - "function": "StaticGenerationAsyncStorageWrapper.wrap", - "in_app": false, - "lineno": 33, - "module": "next.dist.server.async-storage:static-generation-async-storage-wrapper", - "post_context": [ - " }", - "}", - "exports.StaticGenerationAsyncStorageWrapper = StaticGenerationAsyncStorageWrapper;", - "", - "//# sourceMappingURL=static-generation-async-storage-wrapper.js.map" - ], - "pre_context": [ - " const store = {", - " isStaticGeneration,", - " pathname,", - " incrementalCache: renderOpts.incrementalCache,", - " isRevalidate: renderOpts.isRevalidate", - " };", - " renderOpts.store = store;" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 24, - "context_line": " return handle(wrappedReq, {", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 306, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " params", - " });", - " }));", - " // If the handler did't return a valid response, then return the internal", - " // error response.", - " if (!(response instanceof Response)) {", - " // TODO: validate the correct handling behavior, maybe log something?" - ], - "pre_context": [ - " },", - " set (target, prop, value) {", - " handleReqBailout(prop);", - " target[prop] = value;", - " return true;", - " }", - " });" - ] - }, - { - "colno": 10, - "filename": "[[FILENAME9]]", - "function": "Object.apply", - "in_app": false, - "lineno": 65, - "module": "route.ts" - }, - { - "colno": 19, - "context_line": " return core.withIsolationScope(async isolationScope => {", - "filename": "[[FILENAME10]]", - "function": "Object.apply", - "in_app": false, - "lineno": 27, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " isolationScope.setSDKProcessingMetadata({", - " request: {", - " headers: headers ? utils.winterCGHeadersToDict(headers) : undefined,", - " },", - " });", - " return core.continueTrace(", - " {" - ], - "pre_context": [ - " context,", - ") {", - " core.addTracingExtensions();", - " // eslint-disable-next-line deprecation/deprecation", - " const { method, parameterizedRoute, baggageHeader, sentryTraceHeader, headers } = context;", - " return new Proxy(routeHandler, {", - " apply: (originalFunction, thisArg, args) => {" - ] - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME11]]", - "function": "Object.withIsolationScope", - "in_app": false, - "lineno": 207, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " return callback(hub.getIsolationScope());", - " });", - "}", - "", - "/**", - " * Forks the current scope and sets the provided span as active span in the context of the provided callback.", - " *" - ], - "pre_context": [ - " * applications directly because it comes with pitfalls. Use at your own risk!", - " *", - " * @param callback The callback in which the passed isolation scope is active. (Note: In environments without async", - " * context strategy, the currently active isolation scope may change within execution of the callback.)", - " * @returns The same value that `callback` returns.", - " */", - "function withIsolationScope(callback) {" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME12]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " }", - "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", - "}", - "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME13]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME13]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 12, - "context_line": " return callback(hub.getIsolationScope());", - "filename": "[[FILENAME11]]", - "function": "", - "in_app": false, - "lineno": 208, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " });", - "}", - "", - "/**", - " * Forks the current scope and sets the provided span as active span in the context of the provided callback.", - " *", - " * @param span Spans started in the context of the provided callback will be children of this span." - ], - "pre_context": [ - " *", - " * @param callback The callback in which the passed isolation scope is active. (Note: In environments without async", - " * context strategy, the currently active isolation scope may change within execution of the callback.)", - " * @returns The same value that `callback` returns.", - " */", - "function withIsolationScope(callback) {", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 21, - "context_line": " return core.continueTrace(", - "filename": "[[FILENAME10]]", - "function": "", - "in_app": false, - "lineno": 33, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " {", - " sentryTrace: _nullishCoalesce(_nullishCoalesce(sentryTraceHeader, () => ( _optionalChain([headers, 'optionalAccess', _ => _.get, {snip}", - " baggage: _nullishCoalesce(baggageHeader, () => ( _optionalChain([headers, 'optionalAccess', _3 => _3.get, 'call', _4 => _4('baggage')]))),", - " },", - " async () => {", - " try {", - " return await core.startSpan(" - ], - "pre_context": [ - " apply: (originalFunction, thisArg, args) => {", - " return core.withIsolationScope(async isolationScope => {", - " isolationScope.setSDKProcessingMetadata({", - " request: {", - " headers: headers ? utils.winterCGHeadersToDict(headers) : undefined,", - " },", - " });" - ] - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME14]]", - "function": "Object.continueTrace", - "in_app": false, - "lineno": 270, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " return callback(transactionContext);", - " });", - "};", - "", - "function createChildSpanOrTransaction(", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1," - ], - "pre_context": [ - " }),", - " };", - "", - " if (!callback) {", - " return transactionContext;", - " }", - "" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME12]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " }", - "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", - "}", - "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME13]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME13]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 12, - "context_line": " return callback(transactionContext);", - "filename": "[[FILENAME14]]", - "function": "", - "in_app": false, - "lineno": 271, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " });", - "};", - "", - "function createChildSpanOrTransaction(", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1,", - " {" - ], - "pre_context": [ - " };", - "", - " if (!callback) {", - " return transactionContext;", - " }", - "", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 33, - "context_line": " return await core.startSpan(", - "filename": "[[FILENAME10]]", - "function": "", - "in_app": false, - "lineno": 40, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " {", - " op: 'http.server',", - " name: `${method} ${parameterizedRoute}`,", - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " }," - ], - "pre_context": [ - " return core.continueTrace(", - " {", - " sentryTrace: _nullishCoalesce(_nullishCoalesce(sentryTraceHeader, () => ( _optionalChain([headers, 'optionalAccess', _ => _.get, {snip}", - " baggage: _nullishCoalesce(baggageHeader, () => ( _optionalChain([headers, 'optionalAccess', _3 => _3.get, 'call', _4 => _4('baggage')]))),", - " },", - " async () => {", - " try {" - ] - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME14]]", - "function": "Object.startSpan", - "in_app": false, - "lineno": 82, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " return exports$1.withScope(context.scope, scope => {", - " // eslint-disable-next-line deprecation/deprecation", - " const hub$1 = hub.getCurrentHub();", - " // eslint-disable-next-line deprecation/deprecation", - " const parentSpan = scope.getSpan();", - "", - " const shouldSkipSpan = context.onlyIfParent && !parentSpan;" - ], - "pre_context": [ - " * Note that if you have not enabled tracing extensions via `addTracingExtensions`", - " * or you didn't set `tracesSampleRate`, this function will not generate spans", - " * and the `span` returned from the callback will be undefined.", - " */", - "function startSpan(context, callback) {", - " const spanContext = normalizeContext(context);", - "" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME12]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " }", - "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", - "}", - "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME13]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME13]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 22, - "context_line": " return exports$1.withScope(context.scope, scope => {", - "filename": "[[FILENAME14]]", - "function": "", - "in_app": false, - "lineno": 83, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " // eslint-disable-next-line deprecation/deprecation", - " const hub$1 = hub.getCurrentHub();", - " // eslint-disable-next-line deprecation/deprecation", - " const parentSpan = scope.getSpan();", - "", - " const shouldSkipSpan = context.onlyIfParent && !parentSpan;", - " const activeSpan = shouldSkipSpan" - ], - "pre_context": [ - " * or you didn't set `tracesSampleRate`, this function will not generate spans", - " * and the `span` returned from the callback will be undefined.", - " */", - "function startSpan(context, callback) {", - " const spanContext = normalizeContext(context);", - "", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 20, - "context_line": " return hub$1.withScope(callback);", - "filename": "[[FILENAME11]]", - "function": "Object.withScope", - "in_app": false, - "lineno": 177, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " }", - "", - " // eslint-disable-next-line deprecation/deprecation", - " return hub$1.withScope(() => {", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1.getStackTop().scope = scope ;", - " return callback(scope );" - ], - "pre_context": [ - " const hub$1 = hub.getCurrentHub();", - "", - " // If a scope is defined, we want to make this the active scope instead of the default one", - " if (rest.length === 2) {", - " const [scope, callback] = rest;", - " if (!scope) {", - " // eslint-disable-next-line deprecation/deprecation" - ] - }, - { - "colno": 28, - "context_line": " maybePromiseResult = callback(scope);", - "filename": "[[FILENAME12]]", - "function": "Hub.withScope", - "in_app": false, - "lineno": 194, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " } catch (e) {", - " // eslint-disable-next-line deprecation/deprecation", - " this.popScope();", - " throw e;", - " }", - "", - " if (utils.isThenable(maybePromiseResult)) {" - ], - "pre_context": [ - " */", - " withScope(callback) {", - " // eslint-disable-next-line deprecation/deprecation", - " const scope = this.pushScope();", - "", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 35, - "context_line": " return handleCallbackErrors.handleCallbackErrors(", - "filename": "[[FILENAME14]]", - "function": "", - "in_app": false, - "lineno": 99, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " () => callback(activeSpan),", - " () => {", - " // Only update the span status if it hasn't been changed yet", - " if (activeSpan) {", - " const { status } = spanUtils.spanToJSON(activeSpan);", - " if (!status || status === 'ok') {", - " activeSpan.setStatus('internal_error');" - ], - "pre_context": [ - " : createChildSpanOrTransaction(hub$1, {", - " parentSpan,", - " spanContext,", - " forceTransaction: context.forceTransaction,", - " scope,", - " });", - "" - ] - }, - { - "colno": 26, - "context_line": " maybePromiseResult = fn();", - "filename": "[[FILENAME15]]", - "function": "Object.handleCallbackErrors", - "in_app": false, - "lineno": 26, - "module": "@sentry.core.cjs.utils:handleCallbackErrors", - "post_context": [ - " } catch (e) {", - " onError(e);", - " onFinally();", - " throw e;", - " }", - "", - " return maybeHandlePromiseRejection(maybePromiseResult, onError, onFinally);" - ], - "pre_context": [ - " fn,", - " onError,", - " // eslint-disable-next-line @typescript-eslint/no-empty-function", - " onFinally = () => {},", - ") {", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 15, - "context_line": " () => callback(activeSpan),", - "filename": "[[FILENAME14]]", - "function": "handleCallbackErrors.handleCallbackErrors.status.status", - "in_app": false, - "lineno": 100, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " () => {", - " // Only update the span status if it hasn't been changed yet", - " if (activeSpan) {", - " const { status } = spanUtils.spanToJSON(activeSpan);", - " if (!status || status === 'ok') {", - " activeSpan.setStatus('internal_error');", - " }" - ], - "pre_context": [ - " parentSpan,", - " spanContext,", - " forceTransaction: context.forceTransaction,", - " scope,", - " });", - "", - " return handleCallbackErrors.handleCallbackErrors(" - ] - }, - { - "colno": 47, - "context_line": " const response = await core.handleCallbackErrors(", - "filename": "[[FILENAME10]]", - "function": "", - "in_app": false, - "lineno": 50, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " () => originalFunction.apply(thisArg, args),", - " error => {", - " // Next.js throws errors when calling `redirect()`. We don't wanna report these.", - " if (!nextNavigationErrorUtils.isRedirectNavigationError(error)) {", - " core.captureException(error, {", - " mechanism: {", - " handled: false," - ], - "pre_context": [ - " name: `${method} ${parameterizedRoute}`,", - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " },", - " },", - " async span => {" - ] - }, - { - "colno": 26, - "context_line": " maybePromiseResult = fn();", - "filename": "[[FILENAME15]]", - "function": "Object.handleCallbackErrors", - "in_app": false, - "lineno": 26, - "module": "@sentry.core.cjs.utils:handleCallbackErrors", - "post_context": [ - " } catch (e) {", - " onError(e);", - " onFinally();", - " throw e;", - " }", - "", - " return maybeHandlePromiseRejection(maybePromiseResult, onError, onFinally);" - ], - "pre_context": [ - " fn,", - " onError,", - " // eslint-disable-next-line @typescript-eslint/no-empty-function", - " onFinally = () => {},", - ") {", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 44, - "context_line": " () => originalFunction.apply(thisArg, args),", - "filename": "[[FILENAME10]]", - "function": "", - "in_app": false, - "lineno": 51, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " error => {", - " // Next.js throws errors when calling `redirect()`. We don't wanna report these.", - " if (!nextNavigationErrorUtils.isRedirectNavigationError(error)) {", - " core.captureException(error, {", - " mechanism: {", - " handled: false,", - " }," - ], - "pre_context": [ - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " },", - " },", - " async span => {", - " const response = await core.handleCallbackErrors(" - ] - }, - { - "colno": 86, - "filename": "[[FILENAME9]]", - "function": "GET$1", - "in_app": false, - "lineno": 23, - "module": "route.ts" - } - ] - }, - "type": "Error", - "value": "This is an error" - } - ] - }, - "modules": { - "ansi-styles": "4.3.0", - "balanced-match": "1.0.2", - "brace-expansion": "2.0.1", - "caniuse-lite": "1.0.30001610", - "commondir": "1.0.1", - "estree-walker": "2.0.2", - "fs.realpath": "1.0.0", - "function-bind": "1.1.2", - "has-flag": "4.0.0", - "hasown": "2.0.2", - "inflight": "1.0.6", - "inherits": "2.0.4", - "is-core-module": "2.13.1", - "is-reference": "1.2.1", - "js-tokens": "4.0.0", - "localforage": "1.10.0", - "loose-envify": "1.4.0", - "nanoid": "3.3.7", - "next": "13.2.0", - "once": "1.4.0", - "picocolors": "1.0.0", - "picomatch": "2.3.1", - "postcss": "8.4.14", - "react": "18.2.0", - "react-dom": "18.2.0", - "resolve": "1.22.8", - "rollup": "2.78.0", - "scheduler": "0.23.0", - "source-map-js": "1.2.0", - "stacktrace-parser": "0.1.10", - "styled-jsx": "5.1.1", - "wrappy": "1.0.2" - }, - "platform": "node", - "request": { - "cookies": {}, - "headers": { - "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=1e639b3a12f042eb99339c3baac20ffa", - "cache-control": "no-cache", - "connection": "keep-alive", - "host": "localhost:3030", - "pragma": "no-cache", - "referer": "http://localhost:3030/test-route-handlers", - "sec-fetch-dest": "empty", - "sec-fetch-mode": "cors", - "sec-fetch-site": "same-origin", - "sentry-trace": "1e639b3a12f042eb99339c3baac20ffa-84813d02de47733d", - "user-agent": "[[user-agent]]" - }, - "url": "http://localhost:3030" - }, - "sdk": { - "integrations": [ - "InboundFilters", - "FunctionToString", - "LinkedErrors", - "RequestData", - "Console", - "Undici", - "OnUnhandledRejection", - "ContextLines", - "LocalVariables", - "Context", - "Modules", - "RewriteFrames", - "Http", - "OnUncaughtException" - ], - "name": "sentry.javascript.nextjs", - "packages": [ - { - "name": "npm:@sentry/nextjs", - "version": "7.110.1" - }, - { - "name": "npm:@sentry/node", - "version": "7.110.1" - } - ], - "version": "7.110.1" - }, - "server_name": "D9M3PY4LQ7.local", - "tags": { - "runtime": "node", - "transaction": "GET /api/test-error" - }, - "timestamp": "[[timestamp]]", - "transaction": " " - } -] diff --git a/payload-files/nextjs-13_2_0/_api_test-error--transaction.json b/payload-files/nextjs-13_2_0/_api_test-error--transaction.json deleted file mode 100644 index 85bcf35..0000000 --- a/payload-files/nextjs-13_2_0/_api_test-error--transaction.json +++ /dev/null @@ -1,251 +0,0 @@ -[ - { - "dsn": "[[dsn]]", - "event_id": "[[ID1]]", - "sdk": { - "name": "sentry.javascript.nextjs", - "version": "7.110.1" - }, - "sent_at": "[[ISODateString]]", - "trace": { - "environment": "qa", - "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" - } - }, - { - "type": "transaction" - }, - { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled client and server successfully in 255 ms (1321 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 91 ms (502 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%28sc_server%29%2F.%2Fapp%2Fapi%2Ftest-error%2Froute.ts&methodName=GET%241&arguments=&lineNumber=23&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%28sc_server%29%2F.%2Fapp%2Fapi%2Ftest-error%2Froute.ts&methodName=Object.apply&arguments=&lineNumber=65&column=10" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - } - ], - "contexts": { - "app": { - "app_memory": "[[highNumber]]", - "app_start_time": "[[ISODateString]]" - }, - "cloud_resource": {}, - "culture": { - "locale": "en-US", - "timezone": "Europe/Vienna" - }, - "device": { - "arch": "arm64", - "boot_time": "[[ISODateString]]", - "cpu_description": "Apple M1 Pro", - "free_memory": "[[highNumber]]", - "memory_size": "[[highNumber]]", - "processor_count": 10, - "processor_frequency": "[[highNumber]]" - }, - "os": { - "build": "23C64", - "kernel_version": "23.2.0", - "name": "macOS", - "version": "14.2" - }, - "runtime": { - "name": "node", - "version": "v20.12.1" - }, - "trace": { - "data": { - "http.response.status_code": 200, - "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]]", - "status": "ok", - "tags": { - "http.status_code": "200" - }, - "trace_id": "[[ID2]]" - } - }, - "environment": "qa", - "event_id": "[[ID1]]", - "modules": { - "ansi-styles": "4.3.0", - "balanced-match": "1.0.2", - "brace-expansion": "2.0.1", - "caniuse-lite": "1.0.30001610", - "commondir": "1.0.1", - "estree-walker": "2.0.2", - "fs.realpath": "1.0.0", - "function-bind": "1.1.2", - "has-flag": "4.0.0", - "hasown": "2.0.2", - "inflight": "1.0.6", - "inherits": "2.0.4", - "is-core-module": "2.13.1", - "is-reference": "1.2.1", - "js-tokens": "4.0.0", - "localforage": "1.10.0", - "loose-envify": "1.4.0", - "nanoid": "3.3.7", - "next": "13.2.0", - "once": "1.4.0", - "picocolors": "1.0.0", - "picomatch": "2.3.1", - "postcss": "8.4.14", - "react": "18.2.0", - "react-dom": "18.2.0", - "resolve": "1.22.8", - "rollup": "2.78.0", - "scheduler": "0.23.0", - "source-map-js": "1.2.0", - "stacktrace-parser": "0.1.10", - "styled-jsx": "5.1.1", - "wrappy": "1.0.2" - }, - "platform": "node", - "request": { - "cookies": {}, - "headers": { - "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=1e639b3a12f042eb99339c3baac20ffa", - "cache-control": "no-cache", - "connection": "keep-alive", - "host": "localhost:3030", - "pragma": "no-cache", - "referer": "http://localhost:3030/test-route-handlers", - "sec-fetch-dest": "empty", - "sec-fetch-mode": "cors", - "sec-fetch-site": "same-origin", - "sentry-trace": "1e639b3a12f042eb99339c3baac20ffa-84813d02de47733d", - "user-agent": "[[user-agent]]" - }, - "url": "http://localhost:3030" - }, - "sdk": { - "integrations": [ - "InboundFilters", - "FunctionToString", - "LinkedErrors", - "RequestData", - "Console", - "Undici", - "OnUnhandledRejection", - "ContextLines", - "LocalVariables", - "Context", - "Modules", - "RewriteFrames", - "Http", - "OnUncaughtException" - ], - "name": "sentry.javascript.nextjs", - "packages": [ - { - "name": "npm:@sentry/nextjs", - "version": "7.110.1" - }, - { - "name": "npm:@sentry/node", - "version": "7.110.1" - } - ], - "version": "7.110.1" - }, - "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%28sc_server%29%2F.%2Fapp%2Fapi%2Ftest-error%2Froute.ts&methodName=GET%241&arguments=&lineNumber=23&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%28sc_server%29%2F.%2Fapp%2Fapi%2Ftest-error%2Froute.ts&methodName=Object.apply&arguments=&lineNumber=65&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": "[[ID6]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - } - ], - "start_timestamp": "[[timestamp]]", - "tags": { - "http.status_code": "200", - "runtime": "node", - "transaction": "GET /api/test-error" - }, - "timestamp": "[[timestamp]]", - "transaction": "GET /api/test-error", - "transaction_info": { - "source": "route" - }, - "type": "transaction" - } -] diff --git a/payload-files/nextjs-13_2_0/_api_test-error-manual--event.json b/payload-files/nextjs-13_2_0/_api_test-error-manual--event.json deleted file mode 100644 index e2d218f..0000000 --- a/payload-files/nextjs-13_2_0/_api_test-error-manual--event.json +++ /dev/null @@ -1,1442 +0,0 @@ -[ - { - "dsn": "[[dsn]]", - "event_id": "[[ID1]]", - "sdk": { - "name": "sentry.javascript.nextjs", - "version": "7.110.1" - }, - "sent_at": "[[ISODateString]]", - "trace": { - "environment": "qa", - "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" - } - }, - { - "type": "event" - }, - { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled client and server successfully in 255 ms (1321 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 91 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-success/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 108 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-error/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 98 ms (504 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success-manual/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 96 ms (506 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error-manual/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 99 ms (508 modules)", - "timestamp": "[[timestamp]]" - } - ], - "contexts": { - "app": { - "app_memory": "[[highNumber]]", - "app_start_time": "[[ISODateString]]" - }, - "cloud_resource": {}, - "culture": { - "locale": "en-US", - "timezone": "Europe/Vienna" - }, - "device": { - "arch": "arm64", - "boot_time": "[[ISODateString]]", - "cpu_description": "Apple M1 Pro", - "free_memory": "[[highNumber]]", - "memory_size": "[[highNumber]]", - "processor_count": 10, - "processor_frequency": "[[highNumber]]" - }, - "os": { - "build": "23C64", - "kernel_version": "23.2.0", - "name": "macOS", - "version": "14.2" - }, - "runtime": { - "name": "node", - "version": "v20.12.1" - }, - "trace": { - "data": { - "sentry.origin": "manual" - }, - "origin": "manual", - "parent_span_id": "[[ID3]]", - "span_id": "[[ID4]]", - "trace_id": "[[ID2]]" - } - }, - "environment": "qa", - "event_id": "[[ID1]]", - "exception": { - "values": [ - { - "mechanism": { - "handled": true, - "type": "generic" - }, - "stacktrace": { - "frames": [ - { - "colno": 14, - "filename": "[[FILENAME1]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME2]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 12, - "context_line": " return callback(hub.getIsolationScope());", - "filename": "[[FILENAME3]]", - "function": "", - "in_app": false, - "lineno": 208, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " });", - "}", - "", - "/**", - " * Forks the current scope and sets the provided span as active span in the context of the provided callback.", - " *", - " * @param span Spans started in the context of the provided callback will be children of this span." - ], - "pre_context": [ - " *", - " * @param callback The callback in which the passed isolation scope is active. (Note: In environments without async", - " * context strategy, the currently active isolation scope may change within execution of the callback.)", - " * @returns The same value that `callback` returns.", - " */", - "function withIsolationScope(callback) {", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 21, - "context_line": " return core.continueTrace(", - "filename": "[[FILENAME4]]", - "function": "", - "in_app": false, - "lineno": 33, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " {", - " sentryTrace: _nullishCoalesce(_nullishCoalesce(sentryTraceHeader, () => ( _optionalChain([headers, 'optionalAccess', _ => _.get, {snip}", - " baggage: _nullishCoalesce(baggageHeader, () => ( _optionalChain([headers, 'optionalAccess', _3 => _3.get, 'call', _4 => _4('baggage')]))),", - " },", - " async () => {", - " try {", - " return await core.startSpan(" - ], - "pre_context": [ - " apply: (originalFunction, thisArg, args) => {", - " return core.withIsolationScope(async isolationScope => {", - " isolationScope.setSDKProcessingMetadata({", - " request: {", - " headers: headers ? utils.winterCGHeadersToDict(headers) : undefined,", - " },", - " });" - ] - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME5]]", - "function": "Object.continueTrace", - "in_app": false, - "lineno": 270, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " return callback(transactionContext);", - " });", - "};", - "", - "function createChildSpanOrTransaction(", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1," - ], - "pre_context": [ - " }),", - " };", - "", - " if (!callback) {", - " return transactionContext;", - " }", - "" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME6]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " }", - "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", - "}", - "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME2]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME1]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME2]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 12, - "context_line": " return callback(transactionContext);", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 271, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " });", - "};", - "", - "function createChildSpanOrTransaction(", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1,", - " {" - ], - "pre_context": [ - " };", - "", - " if (!callback) {", - " return transactionContext;", - " }", - "", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 33, - "context_line": " return await core.startSpan(", - "filename": "[[FILENAME4]]", - "function": "", - "in_app": false, - "lineno": 40, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " {", - " op: 'http.server',", - " name: `${method} ${parameterizedRoute}`,", - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " }," - ], - "pre_context": [ - " return core.continueTrace(", - " {", - " sentryTrace: _nullishCoalesce(_nullishCoalesce(sentryTraceHeader, () => ( _optionalChain([headers, 'optionalAccess', _ => _.get, {snip}", - " baggage: _nullishCoalesce(baggageHeader, () => ( _optionalChain([headers, 'optionalAccess', _3 => _3.get, 'call', _4 => _4('baggage')]))),", - " },", - " async () => {", - " try {" - ] - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME5]]", - "function": "Object.startSpan", - "in_app": false, - "lineno": 82, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " return exports$1.withScope(context.scope, scope => {", - " // eslint-disable-next-line deprecation/deprecation", - " const hub$1 = hub.getCurrentHub();", - " // eslint-disable-next-line deprecation/deprecation", - " const parentSpan = scope.getSpan();", - "", - " const shouldSkipSpan = context.onlyIfParent && !parentSpan;" - ], - "pre_context": [ - " * Note that if you have not enabled tracing extensions via `addTracingExtensions`", - " * or you didn't set `tracesSampleRate`, this function will not generate spans", - " * and the `span` returned from the callback will be undefined.", - " */", - "function startSpan(context, callback) {", - " const spanContext = normalizeContext(context);", - "" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME6]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " }", - "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", - "}", - "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME2]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME1]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME2]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 22, - "context_line": " return exports$1.withScope(context.scope, scope => {", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 83, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " // eslint-disable-next-line deprecation/deprecation", - " const hub$1 = hub.getCurrentHub();", - " // eslint-disable-next-line deprecation/deprecation", - " const parentSpan = scope.getSpan();", - "", - " const shouldSkipSpan = context.onlyIfParent && !parentSpan;", - " const activeSpan = shouldSkipSpan" - ], - "pre_context": [ - " * or you didn't set `tracesSampleRate`, this function will not generate spans", - " * and the `span` returned from the callback will be undefined.", - " */", - "function startSpan(context, callback) {", - " const spanContext = normalizeContext(context);", - "", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 20, - "context_line": " return hub$1.withScope(callback);", - "filename": "[[FILENAME3]]", - "function": "Object.withScope", - "in_app": false, - "lineno": 177, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " }", - "", - " // eslint-disable-next-line deprecation/deprecation", - " return hub$1.withScope(() => {", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1.getStackTop().scope = scope ;", - " return callback(scope );" - ], - "pre_context": [ - " const hub$1 = hub.getCurrentHub();", - "", - " // If a scope is defined, we want to make this the active scope instead of the default one", - " if (rest.length === 2) {", - " const [scope, callback] = rest;", - " if (!scope) {", - " // eslint-disable-next-line deprecation/deprecation" - ] - }, - { - "colno": 28, - "context_line": " maybePromiseResult = callback(scope);", - "filename": "[[FILENAME6]]", - "function": "Hub.withScope", - "in_app": false, - "lineno": 194, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " } catch (e) {", - " // eslint-disable-next-line deprecation/deprecation", - " this.popScope();", - " throw e;", - " }", - "", - " if (utils.isThenable(maybePromiseResult)) {" - ], - "pre_context": [ - " */", - " withScope(callback) {", - " // eslint-disable-next-line deprecation/deprecation", - " const scope = this.pushScope();", - "", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 35, - "context_line": " return handleCallbackErrors.handleCallbackErrors(", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 99, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " () => callback(activeSpan),", - " () => {", - " // Only update the span status if it hasn't been changed yet", - " if (activeSpan) {", - " const { status } = spanUtils.spanToJSON(activeSpan);", - " if (!status || status === 'ok') {", - " activeSpan.setStatus('internal_error');" - ], - "pre_context": [ - " : createChildSpanOrTransaction(hub$1, {", - " parentSpan,", - " spanContext,", - " forceTransaction: context.forceTransaction,", - " scope,", - " });", - "" - ] - }, - { - "colno": 26, - "context_line": " maybePromiseResult = fn();", - "filename": "[[FILENAME7]]", - "function": "Object.handleCallbackErrors", - "in_app": false, - "lineno": 26, - "module": "@sentry.core.cjs.utils:handleCallbackErrors", - "post_context": [ - " } catch (e) {", - " onError(e);", - " onFinally();", - " throw e;", - " }", - "", - " return maybeHandlePromiseRejection(maybePromiseResult, onError, onFinally);" - ], - "pre_context": [ - " fn,", - " onError,", - " // eslint-disable-next-line @typescript-eslint/no-empty-function", - " onFinally = () => {},", - ") {", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 15, - "context_line": " () => callback(activeSpan),", - "filename": "[[FILENAME5]]", - "function": "handleCallbackErrors.handleCallbackErrors.status.status", - "in_app": false, - "lineno": 100, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " () => {", - " // Only update the span status if it hasn't been changed yet", - " if (activeSpan) {", - " const { status } = spanUtils.spanToJSON(activeSpan);", - " if (!status || status === 'ok') {", - " activeSpan.setStatus('internal_error');", - " }" - ], - "pre_context": [ - " parentSpan,", - " spanContext,", - " forceTransaction: context.forceTransaction,", - " scope,", - " });", - "", - " return handleCallbackErrors.handleCallbackErrors(" - ] - }, - { - "colno": 47, - "context_line": " const response = await core.handleCallbackErrors(", - "filename": "[[FILENAME4]]", - "function": "", - "in_app": false, - "lineno": 50, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " () => originalFunction.apply(thisArg, args),", - " error => {", - " // Next.js throws errors when calling `redirect()`. We don't wanna report these.", - " if (!nextNavigationErrorUtils.isRedirectNavigationError(error)) {", - " core.captureException(error, {", - " mechanism: {", - " handled: false," - ], - "pre_context": [ - " name: `${method} ${parameterizedRoute}`,", - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " },", - " },", - " async span => {" - ] - }, - { - "colno": 26, - "context_line": " maybePromiseResult = fn();", - "filename": "[[FILENAME7]]", - "function": "Object.handleCallbackErrors", - "in_app": false, - "lineno": 26, - "module": "@sentry.core.cjs.utils:handleCallbackErrors", - "post_context": [ - " } catch (e) {", - " onError(e);", - " onFinally();", - " throw e;", - " }", - "", - " return maybeHandlePromiseRejection(maybePromiseResult, onError, onFinally);" - ], - "pre_context": [ - " fn,", - " onError,", - " // eslint-disable-next-line @typescript-eslint/no-empty-function", - " onFinally = () => {},", - ") {", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 44, - "context_line": " () => originalFunction.apply(thisArg, args),", - "filename": "[[FILENAME4]]", - "function": "", - "in_app": false, - "lineno": 51, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " error => {", - " // Next.js throws errors when calling `redirect()`. We don't wanna report these.", - " if (!nextNavigationErrorUtils.isRedirectNavigationError(error)) {", - " core.captureException(error, {", - " mechanism: {", - " handled: false,", - " }," - ], - "pre_context": [ - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " },", - " },", - " async span => {", - " const response = await core.handleCallbackErrors(" - ] - }, - { - "colno": 49, - "filename": "[[FILENAME8]]", - "function": "GET$1", - "in_app": false, - "lineno": 23, - "module": "route.ts" - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME5]]", - "function": "Object.startSpan", - "in_app": false, - "lineno": 82, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " return exports$1.withScope(context.scope, scope => {", - " // eslint-disable-next-line deprecation/deprecation", - " const hub$1 = hub.getCurrentHub();", - " // eslint-disable-next-line deprecation/deprecation", - " const parentSpan = scope.getSpan();", - "", - " const shouldSkipSpan = context.onlyIfParent && !parentSpan;" - ], - "pre_context": [ - " * Note that if you have not enabled tracing extensions via `addTracingExtensions`", - " * or you didn't set `tracesSampleRate`, this function will not generate spans", - " * and the `span` returned from the callback will be undefined.", - " */", - "function startSpan(context, callback) {", - " const spanContext = normalizeContext(context);", - "" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME6]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " }", - "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", - "}", - "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME2]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME1]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME2]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 22, - "context_line": " return exports$1.withScope(context.scope, scope => {", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 83, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " // eslint-disable-next-line deprecation/deprecation", - " const hub$1 = hub.getCurrentHub();", - " // eslint-disable-next-line deprecation/deprecation", - " const parentSpan = scope.getSpan();", - "", - " const shouldSkipSpan = context.onlyIfParent && !parentSpan;", - " const activeSpan = shouldSkipSpan" - ], - "pre_context": [ - " * or you didn't set `tracesSampleRate`, this function will not generate spans", - " * and the `span` returned from the callback will be undefined.", - " */", - "function startSpan(context, callback) {", - " const spanContext = normalizeContext(context);", - "", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 20, - "context_line": " return hub$1.withScope(callback);", - "filename": "[[FILENAME3]]", - "function": "Object.withScope", - "in_app": false, - "lineno": 177, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " }", - "", - " // eslint-disable-next-line deprecation/deprecation", - " return hub$1.withScope(() => {", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1.getStackTop().scope = scope ;", - " return callback(scope );" - ], - "pre_context": [ - " const hub$1 = hub.getCurrentHub();", - "", - " // If a scope is defined, we want to make this the active scope instead of the default one", - " if (rest.length === 2) {", - " const [scope, callback] = rest;", - " if (!scope) {", - " // eslint-disable-next-line deprecation/deprecation" - ] - }, - { - "colno": 28, - "context_line": " maybePromiseResult = callback(scope);", - "filename": "[[FILENAME6]]", - "function": "Hub.withScope", - "in_app": false, - "lineno": 194, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " } catch (e) {", - " // eslint-disable-next-line deprecation/deprecation", - " this.popScope();", - " throw e;", - " }", - "", - " if (utils.isThenable(maybePromiseResult)) {" - ], - "pre_context": [ - " */", - " withScope(callback) {", - " // eslint-disable-next-line deprecation/deprecation", - " const scope = this.pushScope();", - "", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 35, - "context_line": " return handleCallbackErrors.handleCallbackErrors(", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 99, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " () => callback(activeSpan),", - " () => {", - " // Only update the span status if it hasn't been changed yet", - " if (activeSpan) {", - " const { status } = spanUtils.spanToJSON(activeSpan);", - " if (!status || status === 'ok') {", - " activeSpan.setStatus('internal_error');" - ], - "pre_context": [ - " : createChildSpanOrTransaction(hub$1, {", - " parentSpan,", - " spanContext,", - " forceTransaction: context.forceTransaction,", - " scope,", - " });", - "" - ] - }, - { - "colno": 26, - "context_line": " maybePromiseResult = fn();", - "filename": "[[FILENAME7]]", - "function": "Object.handleCallbackErrors", - "in_app": false, - "lineno": 26, - "module": "@sentry.core.cjs.utils:handleCallbackErrors", - "post_context": [ - " } catch (e) {", - " onError(e);", - " onFinally();", - " throw e;", - " }", - "", - " return maybeHandlePromiseRejection(maybePromiseResult, onError, onFinally);" - ], - "pre_context": [ - " fn,", - " onError,", - " // eslint-disable-next-line @typescript-eslint/no-empty-function", - " onFinally = () => {},", - ") {", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 15, - "context_line": " () => callback(activeSpan),", - "filename": "[[FILENAME5]]", - "function": "handleCallbackErrors.handleCallbackErrors.status.status", - "in_app": false, - "lineno": 100, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " () => {", - " // Only update the span status if it hasn't been changed yet", - " if (activeSpan) {", - " const { status } = spanUtils.spanToJSON(activeSpan);", - " if (!status || status === 'ok') {", - " activeSpan.setStatus('internal_error');", - " }" - ], - "pre_context": [ - " parentSpan,", - " spanContext,", - " forceTransaction: context.forceTransaction,", - " scope,", - " });", - "", - " return handleCallbackErrors.handleCallbackErrors(" - ] - }, - { - "colno": 53, - "filename": "[[FILENAME8]]", - "function": "eval", - "in_app": false, - "lineno": 26, - "module": "route.ts" - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME5]]", - "function": "Object.startSpan", - "in_app": false, - "lineno": 82, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " return exports$1.withScope(context.scope, scope => {", - " // eslint-disable-next-line deprecation/deprecation", - " const hub$1 = hub.getCurrentHub();", - " // eslint-disable-next-line deprecation/deprecation", - " const parentSpan = scope.getSpan();", - "", - " const shouldSkipSpan = context.onlyIfParent && !parentSpan;" - ], - "pre_context": [ - " * Note that if you have not enabled tracing extensions via `addTracingExtensions`", - " * or you didn't set `tracesSampleRate`, this function will not generate spans", - " * and the `span` returned from the callback will be undefined.", - " */", - "function startSpan(context, callback) {", - " const spanContext = normalizeContext(context);", - "" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME6]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " }", - "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", - "}", - "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME2]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME1]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME2]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 22, - "context_line": " return exports$1.withScope(context.scope, scope => {", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 83, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " // eslint-disable-next-line deprecation/deprecation", - " const hub$1 = hub.getCurrentHub();", - " // eslint-disable-next-line deprecation/deprecation", - " const parentSpan = scope.getSpan();", - "", - " const shouldSkipSpan = context.onlyIfParent && !parentSpan;", - " const activeSpan = shouldSkipSpan" - ], - "pre_context": [ - " * or you didn't set `tracesSampleRate`, this function will not generate spans", - " * and the `span` returned from the callback will be undefined.", - " */", - "function startSpan(context, callback) {", - " const spanContext = normalizeContext(context);", - "", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 20, - "context_line": " return hub$1.withScope(callback);", - "filename": "[[FILENAME3]]", - "function": "Object.withScope", - "in_app": false, - "lineno": 177, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " }", - "", - " // eslint-disable-next-line deprecation/deprecation", - " return hub$1.withScope(() => {", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1.getStackTop().scope = scope ;", - " return callback(scope );" - ], - "pre_context": [ - " const hub$1 = hub.getCurrentHub();", - "", - " // If a scope is defined, we want to make this the active scope instead of the default one", - " if (rest.length === 2) {", - " const [scope, callback] = rest;", - " if (!scope) {", - " // eslint-disable-next-line deprecation/deprecation" - ] - }, - { - "colno": 28, - "context_line": " maybePromiseResult = callback(scope);", - "filename": "[[FILENAME6]]", - "function": "Hub.withScope", - "in_app": false, - "lineno": 194, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " } catch (e) {", - " // eslint-disable-next-line deprecation/deprecation", - " this.popScope();", - " throw e;", - " }", - "", - " if (utils.isThenable(maybePromiseResult)) {" - ], - "pre_context": [ - " */", - " withScope(callback) {", - " // eslint-disable-next-line deprecation/deprecation", - " const scope = this.pushScope();", - "", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 35, - "context_line": " return handleCallbackErrors.handleCallbackErrors(", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 99, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " () => callback(activeSpan),", - " () => {", - " // Only update the span status if it hasn't been changed yet", - " if (activeSpan) {", - " const { status } = spanUtils.spanToJSON(activeSpan);", - " if (!status || status === 'ok') {", - " activeSpan.setStatus('internal_error');" - ], - "pre_context": [ - " : createChildSpanOrTransaction(hub$1, {", - " parentSpan,", - " spanContext,", - " forceTransaction: context.forceTransaction,", - " scope,", - " });", - "" - ] - }, - { - "colno": 26, - "context_line": " maybePromiseResult = fn();", - "filename": "[[FILENAME7]]", - "function": "Object.handleCallbackErrors", - "in_app": false, - "lineno": 26, - "module": "@sentry.core.cjs.utils:handleCallbackErrors", - "post_context": [ - " } catch (e) {", - " onError(e);", - " onFinally();", - " throw e;", - " }", - "", - " return maybeHandlePromiseRejection(maybePromiseResult, onError, onFinally);" - ], - "pre_context": [ - " fn,", - " onError,", - " // eslint-disable-next-line @typescript-eslint/no-empty-function", - " onFinally = () => {},", - ") {", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 15, - "context_line": " () => callback(activeSpan),", - "filename": "[[FILENAME5]]", - "function": "handleCallbackErrors.handleCallbackErrors.status.status", - "in_app": false, - "lineno": 100, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " () => {", - " // Only update the span status if it hasn't been changed yet", - " if (activeSpan) {", - " const { status } = spanUtils.spanToJSON(activeSpan);", - " if (!status || status === 'ok') {", - " activeSpan.setStatus('internal_error');", - " }" - ], - "pre_context": [ - " parentSpan,", - " spanContext,", - " forceTransaction: context.forceTransaction,", - " scope,", - " });", - "", - " return handleCallbackErrors.handleCallbackErrors(" - ] - }, - { - "colno": 74, - "filename": "[[FILENAME8]]", - "function": "eval", - "in_app": false, - "lineno": 29, - "module": "route.ts" - } - ] - }, - "type": "Error", - "value": "This is an error" - } - ] - }, - "modules": { - "ansi-styles": "4.3.0", - "balanced-match": "1.0.2", - "brace-expansion": "2.0.1", - "caniuse-lite": "1.0.30001610", - "commondir": "1.0.1", - "estree-walker": "2.0.2", - "fs.realpath": "1.0.0", - "function-bind": "1.1.2", - "has-flag": "4.0.0", - "hasown": "2.0.2", - "inflight": "1.0.6", - "inherits": "2.0.4", - "is-core-module": "2.13.1", - "is-reference": "1.2.1", - "js-tokens": "4.0.0", - "localforage": "1.10.0", - "loose-envify": "1.4.0", - "nanoid": "3.3.7", - "next": "13.2.0", - "once": "1.4.0", - "picocolors": "1.0.0", - "picomatch": "2.3.1", - "postcss": "8.4.14", - "react": "18.2.0", - "react-dom": "18.2.0", - "resolve": "1.22.8", - "rollup": "2.78.0", - "scheduler": "0.23.0", - "source-map-js": "1.2.0", - "stacktrace-parser": "0.1.10", - "styled-jsx": "5.1.1", - "wrappy": "1.0.2" - }, - "platform": "node", - "request": { - "cookies": {}, - "headers": { - "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=1e639b3a12f042eb99339c3baac20ffa", - "cache-control": "no-cache", - "connection": "keep-alive", - "host": "localhost:3030", - "pragma": "no-cache", - "referer": "http://localhost:3030/test-route-handlers", - "sec-fetch-dest": "empty", - "sec-fetch-mode": "cors", - "sec-fetch-site": "same-origin", - "sentry-trace": "1e639b3a12f042eb99339c3baac20ffa-84813d02de47733d", - "user-agent": "[[user-agent]]" - }, - "url": "http://localhost:3030" - }, - "sdk": { - "integrations": [ - "InboundFilters", - "FunctionToString", - "LinkedErrors", - "RequestData", - "Console", - "Undici", - "OnUnhandledRejection", - "ContextLines", - "LocalVariables", - "Context", - "Modules", - "RewriteFrames", - "Http", - "OnUncaughtException" - ], - "name": "sentry.javascript.nextjs", - "packages": [ - { - "name": "npm:@sentry/nextjs", - "version": "7.110.1" - }, - { - "name": "npm:@sentry/node", - "version": "7.110.1" - } - ], - "version": "7.110.1" - }, - "server_name": "D9M3PY4LQ7.local", - "tags": { - "runtime": "node", - "transaction": "GET /api/test-error-manual" - }, - "timestamp": "[[timestamp]]", - "transaction": " " - } -] diff --git a/payload-files/nextjs-13_2_0/_api_test-error-manual--transaction.json b/payload-files/nextjs-13_2_0/_api_test-error-manual--transaction.json deleted file mode 100644 index 48854ed..0000000 --- a/payload-files/nextjs-13_2_0/_api_test-error-manual--transaction.json +++ /dev/null @@ -1,320 +0,0 @@ -[ - { - "dsn": "[[dsn]]", - "event_id": "[[ID1]]", - "sdk": { - "name": "sentry.javascript.nextjs", - "version": "7.110.1" - }, - "sent_at": "[[ISODateString]]", - "trace": { - "environment": "qa", - "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" - } - }, - { - "type": "transaction" - }, - { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled client and server successfully in 255 ms (1321 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 91 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-success/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 108 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-error/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 98 ms (504 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success-manual/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 96 ms (506 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error-manual/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 99 ms (508 modules)", - "timestamp": "[[timestamp]]" - } - ], - "contexts": { - "app": { - "app_memory": "[[highNumber]]", - "app_start_time": "[[ISODateString]]" - }, - "cloud_resource": {}, - "culture": { - "locale": "en-US", - "timezone": "Europe/Vienna" - }, - "device": { - "arch": "arm64", - "boot_time": "[[ISODateString]]", - "cpu_description": "Apple M1 Pro", - "free_memory": "[[highNumber]]", - "memory_size": "[[highNumber]]", - "processor_count": 10, - "processor_frequency": "[[highNumber]]" - }, - "os": { - "build": "23C64", - "kernel_version": "23.2.0", - "name": "macOS", - "version": "14.2" - }, - "runtime": { - "name": "node", - "version": "v20.12.1" - }, - "trace": { - "data": { - "http.response.status_code": 200, - "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]]", - "status": "ok", - "tags": { - "http.status_code": "200" - }, - "trace_id": "[[ID2]]" - } - }, - "environment": "qa", - "event_id": "[[ID1]]", - "modules": { - "ansi-styles": "4.3.0", - "balanced-match": "1.0.2", - "brace-expansion": "2.0.1", - "caniuse-lite": "1.0.30001610", - "commondir": "1.0.1", - "estree-walker": "2.0.2", - "fs.realpath": "1.0.0", - "function-bind": "1.1.2", - "has-flag": "4.0.0", - "hasown": "2.0.2", - "inflight": "1.0.6", - "inherits": "2.0.4", - "is-core-module": "2.13.1", - "is-reference": "1.2.1", - "js-tokens": "4.0.0", - "localforage": "1.10.0", - "loose-envify": "1.4.0", - "nanoid": "3.3.7", - "next": "13.2.0", - "once": "1.4.0", - "picocolors": "1.0.0", - "picomatch": "2.3.1", - "postcss": "8.4.14", - "react": "18.2.0", - "react-dom": "18.2.0", - "resolve": "1.22.8", - "rollup": "2.78.0", - "scheduler": "0.23.0", - "source-map-js": "1.2.0", - "stacktrace-parser": "0.1.10", - "styled-jsx": "5.1.1", - "wrappy": "1.0.2" - }, - "platform": "node", - "request": { - "cookies": {}, - "headers": { - "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=1e639b3a12f042eb99339c3baac20ffa", - "cache-control": "no-cache", - "connection": "keep-alive", - "host": "localhost:3030", - "pragma": "no-cache", - "referer": "http://localhost:3030/test-route-handlers", - "sec-fetch-dest": "empty", - "sec-fetch-mode": "cors", - "sec-fetch-site": "same-origin", - "sentry-trace": "1e639b3a12f042eb99339c3baac20ffa-84813d02de47733d", - "user-agent": "[[user-agent]]" - }, - "url": "http://localhost:3030" - }, - "sdk": { - "integrations": [ - "InboundFilters", - "FunctionToString", - "LinkedErrors", - "RequestData", - "Console", - "Undici", - "OnUnhandledRejection", - "ContextLines", - "LocalVariables", - "Context", - "Modules", - "RewriteFrames", - "Http", - "OnUncaughtException" - ], - "name": "sentry.javascript.nextjs", - "packages": [ - { - "name": "npm:@sentry/nextjs", - "version": "7.110.1" - }, - { - "name": "npm:@sentry/node", - "version": "7.110.1" - } - ], - "version": "7.110.1" - }, - "server_name": "D9M3PY4LQ7.local", - "spans": [ - { - "data": { - "sentry.origin": "manual" - }, - "description": "test-span", - "origin": "manual", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID5]]", - "start_timestamp": "[[timestamp]]", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "sentry.origin": "manual" - }, - "description": "child-span", - "origin": "manual", - "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%28sc_server%29%2F.%2Fapp%2Fapi%2Ftest-error-manual%2Froute.ts&methodName=eval&arguments=&lineNumber=29&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%28sc_server%29%2F.%2Fapp%2Fapi%2Ftest-error-manual%2Froute.ts&methodName=eval&arguments=&lineNumber=26&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": "[[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%28sc_server%29%2F.%2Fapp%2Fapi%2Ftest-error-manual%2Froute.ts&methodName=GET%241&arguments=&lineNumber=23&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": "[[ID9]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "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": { - "source": "route" - }, - "type": "transaction" - } -] diff --git a/payload-files/nextjs-13_2_0/_api_test-local-variables-caught--event.json b/payload-files/nextjs-13_2_0/_api_test-local-variables-caught--event.json deleted file mode 100644 index 24dccf0..0000000 --- a/payload-files/nextjs-13_2_0/_api_test-local-variables-caught--event.json +++ /dev/null @@ -1,1367 +0,0 @@ -[ - { - "dsn": "[[dsn]]", - "event_id": "[[ID1]]", - "sdk": { - "name": "sentry.javascript.nextjs", - "version": "7.110.1" - }, - "sent_at": "[[ISODateString]]", - "trace": { - "environment": "qa", - "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" - } - }, - { - "type": "event" - }, - { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled client and server successfully in 255 ms (1321 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 91 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-success/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 108 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-error/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 98 ms (504 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success-manual/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 96 ms (506 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error-manual/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 99 ms (508 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-local-variables-uncaught/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 95 ms (510 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "error", - "message": "\u001b[31merror\u001b[39m - Error: Uncaught Local Variable Error - {\"randomVariableToRecord\":\"LOCAL_VARIABLE\"}\n at GET$1 (webpack-internal:///(sc_server)/./app/api/test-local-variables-uncaught/route.ts:24:11)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/nextjs/cjs/common/wrapRouteHandlerWithSentry.js:51:44\n at Object.handleCallbackErrors (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/utils/handleCallbackErrors.js:26:26)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/nextjs/cjs/common/wrapRouteHandlerWithSentry.js:50:47\n at handleCallbackErrors.handleCallbackErrors.status.status (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/tracing/trace.js:100:15)\n at Object.handleCallbackErrors (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/utils/handleCallbackErrors.js:26:26)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/tracing/trace.js:99:35\n at Hub.withScope (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/hub.js:194:28)\n at Object.withScope (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/exports.js:177:20)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/tracing/trace.js:83:22\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/node/cjs/async/hooks.js:46:14\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/node/cjs/async/hooks.js:45:25)\n at Object.runWithAsyncContext (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/hub.js:777:36)\n at Object.startSpan (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/tracing/trace.js:82:14)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/nextjs/cjs/common/wrapRouteHandlerWithSentry.js:40:33\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/tracing/trace.js:271:12\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/node/cjs/async/hooks.js:46:14\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/node/cjs/async/hooks.js:45:25)\n at Object.runWithAsyncContext (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/hub.js:777:36)\n at Object.continueTrace (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/tracing/trace.js:270:14)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/nextjs/cjs/common/wrapRouteHandlerWithSentry.js:33:21\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/exports.js:208:12\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/node/cjs/async/hooks.js:46:14\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/node/cjs/async/hooks.js:45:25)\n at Object.runWithAsyncContext (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/hub.js:777:36)\n at Object.withIsolationScope (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/exports.js:207:14)\n at Object.apply (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/nextjs/cjs/common/wrapRouteHandlerWithSentry.js:27:19)\n at Object.apply (webpack-internal:///(sc_server)/./app/api/test-local-variables-uncaught/route.ts:64:10)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/future/route-handlers/app-route-route-handler.js:306:24\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at StaticGenerationAsyncStorageWrapper.wrap (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/async-storage/static-generation-async-storage-wrapper.js:33:24)\n at StaticGenerationAsyncStorageWrapper.wrap (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/async-storage/static-generation-async-storage-wrapper.js:7:52)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/future/route-handlers/app-route-route-handler.js:217:52\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at RequestAsyncStorageWrapper.wrap (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/async-storage/request-async-storage-wrapper.js:65:24)\n at RequestAsyncStorageWrapper.wrap (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/async-storage/request-async-storage-wrapper.js:30:43)\n at AppRouteRouteHandler.execute (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/future/route-handlers/app-route-route-handler.js:214:69)\n at AppRouteRouteHandler.handle (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/future/route-handlers/app-route-route-handler.js:348:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async RouteHandlerManager.handle (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/future/route-handler-managers/route-handler-manager.js:16:24)\n at async doRender (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/base-server.js:743:32)\n at async cacheEntry1.responseCache.get.incrementalCache.incrementalCache (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/base-server.js:926:28)\n at async /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/response-cache/index.js:83:36", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-local-variables-caught/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 100 ms (512 modules)", - "timestamp": "[[timestamp]]" - } - ], - "contexts": { - "app": { - "app_memory": "[[highNumber]]", - "app_start_time": "[[ISODateString]]" - }, - "cloud_resource": {}, - "culture": { - "locale": "en-US", - "timezone": "Europe/Vienna" - }, - "device": { - "arch": "arm64", - "boot_time": "[[ISODateString]]", - "cpu_description": "Apple M1 Pro", - "free_memory": "[[highNumber]]", - "memory_size": "[[highNumber]]", - "processor_count": 10, - "processor_frequency": "[[highNumber]]" - }, - "os": { - "build": "23C64", - "kernel_version": "23.2.0", - "name": "macOS", - "version": "14.2" - }, - "runtime": { - "name": "node", - "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]]" - } - }, - "environment": "qa", - "event_id": "[[ID1]]", - "exception": { - "values": [ - { - "mechanism": { - "handled": true, - "type": "generic" - }, - "stacktrace": { - "frames": [ - { - "colno": 36, - "context_line": " const cacheEntry = await responseGenerator(resolved, !!cachedResponse);", - "filename": "[[FILENAME1]]", - "function": "", - "in_app": false, - "lineno": 83, - "module": "next.dist.server.response-cache:index", - "post_context": [ - " const resolveValue = cacheEntry === null ? null : {", - " ...cacheEntry,", - " isMiss: !cachedResponse", - " };", - " // for manual revalidate wait to resolve until cache is set", - " if (!context.isManualRevalidate) {", - " resolve1(resolveValue);" - ], - "pre_context": [ - " });", - " if (!cachedResponse.isStale || context.isPrefetch) {", - " // The cached value is still valid, so we don't need", - " // to update it yet.", - " return;", - " }", - " }" - ] - }, - { - "colno": 28, - "context_line": " const result = await doRender();", - "filename": "[[FILENAME2]]", - "function": "cacheEntry1.responseCache.get.incrementalCache.incrementalCache", - "in_app": false, - "lineno": 926, - "module": "next.dist.server:base-server", - "post_context": [ - " if (!result) {", - " return null;", - " }", - " return {", - " ...result,", - " revalidate: result.revalidate !== undefined ? result.revalidate : /* default to minimum revalidate (this should be an invariant) */ 1", - " };" - ], - "pre_context": [ - " }", - " // Prevent caching this result", - " delete result.revalidate;", - " return result;", - " }", - " }", - " }" - ] - }, - { - "colno": 32, - "context_line": " let response = await this.handlers.handle(match, req, res, context, isSSG);", - "filename": "[[FILENAME2]]", - "function": "doRender", - "in_app": false, - "lineno": 743, - "module": "next.dist.server:base-server", - "post_context": [ - " if (response) {", - " if (isSSG && process.env.NEXT_RUNTIME !== \"edge\") {", - " const blob = await response.blob();", - " const headers = Object.fromEntries(response.headers);", - " if (!headers[\"content-type\"] && blob.type) {", - " headers[\"content-type\"] = blob.type;", - " }" - ], - "pre_context": [ - " const supportsDynamicHTML = !(isSSG || hasStaticPaths);", - " const match = pathname !== \"/_error\" && !is404Page && !is500Page ? (0, _requestMeta).getRequestMeta(req, \"_nextMatch\") : undefined;", - " if (match) {", - " const context = {", - " supportsDynamicHTML,", - " incrementalCache", - " };" - ] - }, - { - "colno": 24, - "context_line": " const result = await handler.handle(match, req, res, context, bubbleResult);", - "filename": "[[FILENAME3]]", - "function": "RouteHandlerManager.handle", - "in_app": false, - "lineno": 16, - "module": "next.dist.server.future.route-handler-managers:route-handler-manager", - "post_context": [ - " if (bubbleResult) {", - " return result;", - " }", - " return true;", - " }", - "}", - "exports.RouteHandlerManager = RouteHandlerManager;" - ], - "pre_context": [ - " throw new Error(\"Invariant: duplicate route handler added for kind\");", - " }", - " this.handlers[kind] = handler;", - " }", - " async handle(match, req, res, context, bubbleResult) {", - " const handler = this.handlers[match.definition.kind];", - " if (!handler) return false;" - ] - }, - { - "colno": 5, - "filename": "[[FILENAME4]]", - "function": "process.processTicksAndRejections", - "in_app": false, - "lineno": 95, - "module": "task_queues", - "platform": "nodejs" - }, - { - "colno": 41, - "context_line": " const response = await this.execute(match, appRouteModule, req, res, context);", - "filename": "[[FILENAME5]]", - "function": "AppRouteRouteHandler.handle", - "in_app": false, - "lineno": 348, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " if (bubbleResult) {", - " return response;", - " }", - " // Send the response back to the response.", - " await sendResponse(req, res, response);", - " } catch (err) {", - " const response = resolveHandlerError(err, bubbleResult);" - ], - "pre_context": [ - " }", - " async handle(match, req, res, context, bubbleResult) {", - " try {", - " // Load the module using the module loader.", - " const appRouteModule = await this.moduleLoader.load(match.definition.filename);", - " (0, _patchFetch).patchFetch(appRouteModule);", - " // Execute the route to get the response." - ] - }, - { - "colno": 69, - "context_line": " const response = await this.requestAsyncLocalStorageWrapper.wrap(requestAsyncStorage, {", - "filename": "[[FILENAME5]]", - "function": "AppRouteRouteHandler.execute", - "in_app": false, - "lineno": 214, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " req: req.originalRequest,", - " res: res.originalResponse", - " }, ()=>this.staticAsyncLocalStorageWrapper.wrap(staticGenerationAsyncStorage, {", - " pathname: definition.pathname,", - " renderOpts: context || {}", - " }, ()=>{", - " const _req = request ? request : wrapRequest(req);" - ], - "pre_context": [ - " request) {", - " // This is added by the webpack loader, we load it directly from the module.", - " const { requestAsyncStorage , staticGenerationAsyncStorage } = module;", - " // Get the handler function for the given method.", - " const handle = this.resolve(req.method, module);", - " // Run the handler with the request AsyncLocalStorage to inject the helper", - " // support." - ] - }, - { - "colno": 43, - "context_line": " return RequestAsyncStorageWrapper.wrap(storage, context, callback);", - "filename": "[[FILENAME6]]", - "function": "RequestAsyncStorageWrapper.wrap", - "in_app": false, - "lineno": 30, - "module": "next.dist.server.async-storage:request-async-storage-wrapper", - "post_context": [ - " }", - " /**", - " * @deprecated instance method should be used in favor of the static method", - " */ static wrap(storage, { req , res , renderOpts }, callback) {", - " // Reads of this are cached on the `req` object, so this should resolve", - " // instantly. There's no need to pass this data down from a previous", - " // invoke, where we'd have to consider server & serverless." - ], - "pre_context": [ - " * store using hooks.", - " *", - " * @param storage underlying storage object returned by the module", - " * @param context context to seed the store", - " * @param callback function to call within the scope of the context", - " * @returns the result returned by the callback", - " */ wrap(storage, context, callback) {" - ] - }, - { - "colno": 24, - "context_line": " return storage.run(store, callback);", - "filename": "[[FILENAME6]]", - "function": "RequestAsyncStorageWrapper.wrap", - "in_app": false, - "lineno": 65, - "module": "next.dist.server.async-storage:request-async-storage-wrapper", - "post_context": [ - " }", - "}", - "exports.RequestAsyncStorageWrapper = RequestAsyncStorageWrapper;", - "", - "//# sourceMappingURL=request-async-storage-wrapper.js.map" - ], - "pre_context": [ - " }", - " });", - " }", - " return cachedCookiesInstance;", - " },", - " previewData", - " };" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 52, - "context_line": " }, ()=>this.staticAsyncLocalStorageWrapper.wrap(staticGenerationAsyncStorage, {", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 217, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " pathname: definition.pathname,", - " renderOpts: context || {}", - " }, ()=>{", - " const _req = request ? request : wrapRequest(req);", - " // We can currently only statically optimize if only GET/HEAD", - " // are used as a Prerender can't be used conditionally based", - " // on the method currently" - ], - "pre_context": [ - " // Get the handler function for the given method.", - " const handle = this.resolve(req.method, module);", - " // Run the handler with the request AsyncLocalStorage to inject the helper", - " // support.", - " const response = await this.requestAsyncLocalStorageWrapper.wrap(requestAsyncStorage, {", - " req: req.originalRequest,", - " res: res.originalResponse" - ] - }, - { - "colno": 52, - "context_line": " return StaticGenerationAsyncStorageWrapper.wrap(storage, context, callback);", - "filename": "[[FILENAME8]]", - "function": "StaticGenerationAsyncStorageWrapper.wrap", - "in_app": false, - "lineno": 7, - "module": "next.dist.server.async-storage:static-generation-async-storage-wrapper", - "post_context": [ - " }", - " /**", - " * @deprecated instance method should be used in favor of the static method", - " */ static wrap(storage, { pathname , renderOpts }, callback) {", - " /**", - " * Rules of Static & Dynamic HTML:", - " *" - ], - "pre_context": [ - "\"use strict\";", - "Object.defineProperty(exports, \"__esModule\", {", - " value: true", - "});", - "class StaticGenerationAsyncStorageWrapper {", - " wrap(storage, context, callback) {" - ] - }, - { - "colno": 24, - "context_line": " return storage.run(store, callback);", - "filename": "[[FILENAME8]]", - "function": "StaticGenerationAsyncStorageWrapper.wrap", - "in_app": false, - "lineno": 33, - "module": "next.dist.server.async-storage:static-generation-async-storage-wrapper", - "post_context": [ - " }", - "}", - "exports.StaticGenerationAsyncStorageWrapper = StaticGenerationAsyncStorageWrapper;", - "", - "//# sourceMappingURL=static-generation-async-storage-wrapper.js.map" - ], - "pre_context": [ - " const store = {", - " isStaticGeneration,", - " pathname,", - " incrementalCache: renderOpts.incrementalCache,", - " isRevalidate: renderOpts.isRevalidate", - " };", - " renderOpts.store = store;" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 24, - "context_line": " return handle(wrappedReq, {", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 306, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " params", - " });", - " }));", - " // If the handler did't return a valid response, then return the internal", - " // error response.", - " if (!(response instanceof Response)) {", - " // TODO: validate the correct handling behavior, maybe log something?" - ], - "pre_context": [ - " },", - " set (target, prop, value) {", - " handleReqBailout(prop);", - " target[prop] = value;", - " return true;", - " }", - " });" - ] - }, - { - "colno": 10, - "filename": "[[FILENAME9]]", - "function": "Object.apply", - "in_app": false, - "lineno": 71, - "module": "route.ts" - }, - { - "colno": 19, - "context_line": " return core.withIsolationScope(async isolationScope => {", - "filename": "[[FILENAME10]]", - "function": "Object.apply", - "in_app": false, - "lineno": 27, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " isolationScope.setSDKProcessingMetadata({", - " request: {", - " headers: headers ? utils.winterCGHeadersToDict(headers) : undefined,", - " },", - " });", - " return core.continueTrace(", - " {" - ], - "pre_context": [ - " context,", - ") {", - " core.addTracingExtensions();", - " // eslint-disable-next-line deprecation/deprecation", - " const { method, parameterizedRoute, baggageHeader, sentryTraceHeader, headers } = context;", - " return new Proxy(routeHandler, {", - " apply: (originalFunction, thisArg, args) => {" - ] - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME11]]", - "function": "Object.withIsolationScope", - "in_app": false, - "lineno": 207, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " return callback(hub.getIsolationScope());", - " });", - "}", - "", - "/**", - " * Forks the current scope and sets the provided span as active span in the context of the provided callback.", - " *" - ], - "pre_context": [ - " * applications directly because it comes with pitfalls. Use at your own risk!", - " *", - " * @param callback The callback in which the passed isolation scope is active. (Note: In environments without async", - " * context strategy, the currently active isolation scope may change within execution of the callback.)", - " * @returns The same value that `callback` returns.", - " */", - "function withIsolationScope(callback) {" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME12]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " }", - "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", - "}", - "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME13]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME13]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 12, - "context_line": " return callback(hub.getIsolationScope());", - "filename": "[[FILENAME11]]", - "function": "", - "in_app": false, - "lineno": 208, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " });", - "}", - "", - "/**", - " * Forks the current scope and sets the provided span as active span in the context of the provided callback.", - " *", - " * @param span Spans started in the context of the provided callback will be children of this span." - ], - "pre_context": [ - " *", - " * @param callback The callback in which the passed isolation scope is active. (Note: In environments without async", - " * context strategy, the currently active isolation scope may change within execution of the callback.)", - " * @returns The same value that `callback` returns.", - " */", - "function withIsolationScope(callback) {", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 21, - "context_line": " return core.continueTrace(", - "filename": "[[FILENAME10]]", - "function": "", - "in_app": false, - "lineno": 33, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " {", - " sentryTrace: _nullishCoalesce(_nullishCoalesce(sentryTraceHeader, () => ( _optionalChain([headers, 'optionalAccess', _ => _.get, {snip}", - " baggage: _nullishCoalesce(baggageHeader, () => ( _optionalChain([headers, 'optionalAccess', _3 => _3.get, 'call', _4 => _4('baggage')]))),", - " },", - " async () => {", - " try {", - " return await core.startSpan(" - ], - "pre_context": [ - " apply: (originalFunction, thisArg, args) => {", - " return core.withIsolationScope(async isolationScope => {", - " isolationScope.setSDKProcessingMetadata({", - " request: {", - " headers: headers ? utils.winterCGHeadersToDict(headers) : undefined,", - " },", - " });" - ] - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME14]]", - "function": "Object.continueTrace", - "in_app": false, - "lineno": 270, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " return callback(transactionContext);", - " });", - "};", - "", - "function createChildSpanOrTransaction(", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1," - ], - "pre_context": [ - " }),", - " };", - "", - " if (!callback) {", - " return transactionContext;", - " }", - "" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME12]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " }", - "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", - "}", - "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME13]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME13]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 12, - "context_line": " return callback(transactionContext);", - "filename": "[[FILENAME14]]", - "function": "", - "in_app": false, - "lineno": 271, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " });", - "};", - "", - "function createChildSpanOrTransaction(", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1,", - " {" - ], - "pre_context": [ - " };", - "", - " if (!callback) {", - " return transactionContext;", - " }", - "", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 33, - "context_line": " return await core.startSpan(", - "filename": "[[FILENAME10]]", - "function": "", - "in_app": false, - "lineno": 40, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " {", - " op: 'http.server',", - " name: `${method} ${parameterizedRoute}`,", - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " }," - ], - "pre_context": [ - " return core.continueTrace(", - " {", - " sentryTrace: _nullishCoalesce(_nullishCoalesce(sentryTraceHeader, () => ( _optionalChain([headers, 'optionalAccess', _ => _.get, {snip}", - " baggage: _nullishCoalesce(baggageHeader, () => ( _optionalChain([headers, 'optionalAccess', _3 => _3.get, 'call', _4 => _4('baggage')]))),", - " },", - " async () => {", - " try {" - ] - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME14]]", - "function": "Object.startSpan", - "in_app": false, - "lineno": 82, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " return exports$1.withScope(context.scope, scope => {", - " // eslint-disable-next-line deprecation/deprecation", - " const hub$1 = hub.getCurrentHub();", - " // eslint-disable-next-line deprecation/deprecation", - " const parentSpan = scope.getSpan();", - "", - " const shouldSkipSpan = context.onlyIfParent && !parentSpan;" - ], - "pre_context": [ - " * Note that if you have not enabled tracing extensions via `addTracingExtensions`", - " * or you didn't set `tracesSampleRate`, this function will not generate spans", - " * and the `span` returned from the callback will be undefined.", - " */", - "function startSpan(context, callback) {", - " const spanContext = normalizeContext(context);", - "" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME12]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " }", - "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", - "}", - "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME13]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME13]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 22, - "context_line": " return exports$1.withScope(context.scope, scope => {", - "filename": "[[FILENAME14]]", - "function": "", - "in_app": false, - "lineno": 83, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " // eslint-disable-next-line deprecation/deprecation", - " const hub$1 = hub.getCurrentHub();", - " // eslint-disable-next-line deprecation/deprecation", - " const parentSpan = scope.getSpan();", - "", - " const shouldSkipSpan = context.onlyIfParent && !parentSpan;", - " const activeSpan = shouldSkipSpan" - ], - "pre_context": [ - " * or you didn't set `tracesSampleRate`, this function will not generate spans", - " * and the `span` returned from the callback will be undefined.", - " */", - "function startSpan(context, callback) {", - " const spanContext = normalizeContext(context);", - "", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 20, - "context_line": " return hub$1.withScope(callback);", - "filename": "[[FILENAME11]]", - "function": "Object.withScope", - "in_app": false, - "lineno": 177, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " }", - "", - " // eslint-disable-next-line deprecation/deprecation", - " return hub$1.withScope(() => {", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1.getStackTop().scope = scope ;", - " return callback(scope );" - ], - "pre_context": [ - " const hub$1 = hub.getCurrentHub();", - "", - " // If a scope is defined, we want to make this the active scope instead of the default one", - " if (rest.length === 2) {", - " const [scope, callback] = rest;", - " if (!scope) {", - " // eslint-disable-next-line deprecation/deprecation" - ] - }, - { - "colno": 28, - "context_line": " maybePromiseResult = callback(scope);", - "filename": "[[FILENAME12]]", - "function": "Hub.withScope", - "in_app": false, - "lineno": 194, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " } catch (e) {", - " // eslint-disable-next-line deprecation/deprecation", - " this.popScope();", - " throw e;", - " }", - "", - " if (utils.isThenable(maybePromiseResult)) {" - ], - "pre_context": [ - " */", - " withScope(callback) {", - " // eslint-disable-next-line deprecation/deprecation", - " const scope = this.pushScope();", - "", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 35, - "context_line": " return handleCallbackErrors.handleCallbackErrors(", - "filename": "[[FILENAME14]]", - "function": "", - "in_app": false, - "lineno": 99, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " () => callback(activeSpan),", - " () => {", - " // Only update the span status if it hasn't been changed yet", - " if (activeSpan) {", - " const { status } = spanUtils.spanToJSON(activeSpan);", - " if (!status || status === 'ok') {", - " activeSpan.setStatus('internal_error');" - ], - "pre_context": [ - " : createChildSpanOrTransaction(hub$1, {", - " parentSpan,", - " spanContext,", - " forceTransaction: context.forceTransaction,", - " scope,", - " });", - "" - ] - }, - { - "colno": 26, - "context_line": " maybePromiseResult = fn();", - "filename": "[[FILENAME15]]", - "function": "Object.handleCallbackErrors", - "in_app": false, - "lineno": 26, - "module": "@sentry.core.cjs.utils:handleCallbackErrors", - "post_context": [ - " } catch (e) {", - " onError(e);", - " onFinally();", - " throw e;", - " }", - "", - " return maybeHandlePromiseRejection(maybePromiseResult, onError, onFinally);" - ], - "pre_context": [ - " fn,", - " onError,", - " // eslint-disable-next-line @typescript-eslint/no-empty-function", - " onFinally = () => {},", - ") {", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 15, - "context_line": " () => callback(activeSpan),", - "filename": "[[FILENAME14]]", - "function": "handleCallbackErrors.handleCallbackErrors.status.status", - "in_app": false, - "lineno": 100, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " () => {", - " // Only update the span status if it hasn't been changed yet", - " if (activeSpan) {", - " const { status } = spanUtils.spanToJSON(activeSpan);", - " if (!status || status === 'ok') {", - " activeSpan.setStatus('internal_error');", - " }" - ], - "pre_context": [ - " parentSpan,", - " spanContext,", - " forceTransaction: context.forceTransaction,", - " scope,", - " });", - "", - " return handleCallbackErrors.handleCallbackErrors(" - ] - }, - { - "colno": 47, - "context_line": " const response = await core.handleCallbackErrors(", - "filename": "[[FILENAME10]]", - "function": "", - "in_app": false, - "lineno": 50, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " () => originalFunction.apply(thisArg, args),", - " error => {", - " // Next.js throws errors when calling `redirect()`. We don't wanna report these.", - " if (!nextNavigationErrorUtils.isRedirectNavigationError(error)) {", - " core.captureException(error, {", - " mechanism: {", - " handled: false," - ], - "pre_context": [ - " name: `${method} ${parameterizedRoute}`,", - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " },", - " },", - " async span => {" - ] - }, - { - "colno": 26, - "context_line": " maybePromiseResult = fn();", - "filename": "[[FILENAME15]]", - "function": "Object.handleCallbackErrors", - "in_app": false, - "lineno": 26, - "module": "@sentry.core.cjs.utils:handleCallbackErrors", - "post_context": [ - " } catch (e) {", - " onError(e);", - " onFinally();", - " throw e;", - " }", - "", - " return maybeHandlePromiseRejection(maybePromiseResult, onError, onFinally);" - ], - "pre_context": [ - " fn,", - " onError,", - " // eslint-disable-next-line @typescript-eslint/no-empty-function", - " onFinally = () => {},", - ") {", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 44, - "context_line": " () => originalFunction.apply(thisArg, args),", - "filename": "[[FILENAME10]]", - "function": "", - "in_app": false, - "lineno": 51, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " error => {", - " // Next.js throws errors when calling `redirect()`. We don't wanna report these.", - " if (!nextNavigationErrorUtils.isRedirectNavigationError(error)) {", - " core.captureException(error, {", - " mechanism: {", - " handled: false,", - " }," - ], - "pre_context": [ - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " },", - " },", - " async span => {", - " const response = await core.handleCallbackErrors(" - ] - }, - { - "colno": 15, - "filename": "[[FILENAME9]]", - "function": "GET$1", - "in_app": false, - "lineno": 26, - "module": "route.ts", - "vars": { - "randomVariableToRecord": "LOCAL_VARIABLE" - } - } - ] - }, - "type": "Error", - "value": "Local Variable Error" - } - ] - }, - "modules": { - "ansi-styles": "4.3.0", - "balanced-match": "1.0.2", - "brace-expansion": "2.0.1", - "caniuse-lite": "1.0.30001610", - "commondir": "1.0.1", - "estree-walker": "2.0.2", - "fs.realpath": "1.0.0", - "function-bind": "1.1.2", - "has-flag": "4.0.0", - "hasown": "2.0.2", - "inflight": "1.0.6", - "inherits": "2.0.4", - "is-core-module": "2.13.1", - "is-reference": "1.2.1", - "js-tokens": "4.0.0", - "localforage": "1.10.0", - "loose-envify": "1.4.0", - "nanoid": "3.3.7", - "next": "13.2.0", - "once": "1.4.0", - "picocolors": "1.0.0", - "picomatch": "2.3.1", - "postcss": "8.4.14", - "react": "18.2.0", - "react-dom": "18.2.0", - "resolve": "1.22.8", - "rollup": "2.78.0", - "scheduler": "0.23.0", - "source-map-js": "1.2.0", - "stacktrace-parser": "0.1.10", - "styled-jsx": "5.1.1", - "wrappy": "1.0.2" - }, - "platform": "node", - "request": { - "cookies": {}, - "headers": { - "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=1e639b3a12f042eb99339c3baac20ffa", - "cache-control": "no-cache", - "connection": "keep-alive", - "host": "localhost:3030", - "pragma": "no-cache", - "referer": "http://localhost:3030/test-route-handlers", - "sec-fetch-dest": "empty", - "sec-fetch-mode": "cors", - "sec-fetch-site": "same-origin", - "sentry-trace": "1e639b3a12f042eb99339c3baac20ffa-84813d02de47733d", - "user-agent": "[[user-agent]]" - }, - "url": "http://localhost:3030" - }, - "sdk": { - "integrations": [ - "InboundFilters", - "FunctionToString", - "LinkedErrors", - "RequestData", - "Console", - "Undici", - "OnUnhandledRejection", - "ContextLines", - "LocalVariables", - "Context", - "Modules", - "RewriteFrames", - "Http", - "OnUncaughtException" - ], - "name": "sentry.javascript.nextjs", - "packages": [ - { - "name": "npm:@sentry/nextjs", - "version": "7.110.1" - }, - { - "name": "npm:@sentry/node", - "version": "7.110.1" - } - ], - "version": "7.110.1" - }, - "server_name": "D9M3PY4LQ7.local", - "tags": { - "runtime": "node", - "transaction": "GET /api/test-local-variables-caught" - }, - "timestamp": "[[timestamp]]", - "transaction": " " - } -] diff --git a/payload-files/nextjs-13_2_0/_api_test-local-variables-caught--transaction.json b/payload-files/nextjs-13_2_0/_api_test-local-variables-caught--transaction.json deleted file mode 100644 index eb00142..0000000 --- a/payload-files/nextjs-13_2_0/_api_test-local-variables-caught--transaction.json +++ /dev/null @@ -1,274 +0,0 @@ -[ - { - "dsn": "[[dsn]]", - "event_id": "[[ID1]]", - "sdk": { - "name": "sentry.javascript.nextjs", - "version": "7.110.1" - }, - "sent_at": "[[ISODateString]]", - "trace": { - "environment": "qa", - "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" - } - }, - { - "type": "transaction" - }, - { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled client and server successfully in 255 ms (1321 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 91 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-success/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 108 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-error/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 98 ms (504 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success-manual/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 96 ms (506 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error-manual/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 99 ms (508 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-local-variables-uncaught/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 95 ms (510 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "error", - "message": "\u001b[31merror\u001b[39m - Error: Uncaught Local Variable Error - {\"randomVariableToRecord\":\"LOCAL_VARIABLE\"}\n at GET$1 (webpack-internal:///(sc_server)/./app/api/test-local-variables-uncaught/route.ts:24:11)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/nextjs/cjs/common/wrapRouteHandlerWithSentry.js:51:44\n at Object.handleCallbackErrors (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/utils/handleCallbackErrors.js:26:26)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/nextjs/cjs/common/wrapRouteHandlerWithSentry.js:50:47\n at handleCallbackErrors.handleCallbackErrors.status.status (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/tracing/trace.js:100:15)\n at Object.handleCallbackErrors (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/utils/handleCallbackErrors.js:26:26)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/tracing/trace.js:99:35\n at Hub.withScope (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/hub.js:194:28)\n at Object.withScope (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/exports.js:177:20)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/tracing/trace.js:83:22\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/node/cjs/async/hooks.js:46:14\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/node/cjs/async/hooks.js:45:25)\n at Object.runWithAsyncContext (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/hub.js:777:36)\n at Object.startSpan (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/tracing/trace.js:82:14)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/nextjs/cjs/common/wrapRouteHandlerWithSentry.js:40:33\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/tracing/trace.js:271:12\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/node/cjs/async/hooks.js:46:14\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/node/cjs/async/hooks.js:45:25)\n at Object.runWithAsyncContext (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/hub.js:777:36)\n at Object.continueTrace (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/tracing/trace.js:270:14)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/nextjs/cjs/common/wrapRouteHandlerWithSentry.js:33:21\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/exports.js:208:12\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/node/cjs/async/hooks.js:46:14\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at Object.runWithAsyncContext (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/node/cjs/async/hooks.js:45:25)\n at Object.runWithAsyncContext (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/hub.js:777:36)\n at Object.withIsolationScope (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/core/cjs/exports.js:207:14)\n at Object.apply (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/@sentry/nextjs/cjs/common/wrapRouteHandlerWithSentry.js:27:19)\n at Object.apply (webpack-internal:///(sc_server)/./app/api/test-local-variables-uncaught/route.ts:64:10)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/future/route-handlers/app-route-route-handler.js:306:24\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at StaticGenerationAsyncStorageWrapper.wrap (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/async-storage/static-generation-async-storage-wrapper.js:33:24)\n at StaticGenerationAsyncStorageWrapper.wrap (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/async-storage/static-generation-async-storage-wrapper.js:7:52)\n at /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/future/route-handlers/app-route-route-handler.js:217:52\n at AsyncLocalStorage.run (node:async_hooks:346:14)\n at RequestAsyncStorageWrapper.wrap (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/async-storage/request-async-storage-wrapper.js:65:24)\n at RequestAsyncStorageWrapper.wrap (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/async-storage/request-async-storage-wrapper.js:30:43)\n at AppRouteRouteHandler.execute (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/future/route-handlers/app-route-route-handler.js:214:69)\n at AppRouteRouteHandler.handle (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/future/route-handlers/app-route-route-handler.js:348:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async RouteHandlerManager.handle (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/future/route-handler-managers/route-handler-manager.js:16:24)\n at async doRender (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/base-server.js:743:32)\n at async cacheEntry1.responseCache.get.incrementalCache.incrementalCache (/Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/base-server.js:926:28)\n at async /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/next/dist/server/response-cache/index.js:83:36", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-local-variables-caught/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 100 ms (512 modules)", - "timestamp": "[[timestamp]]" - } - ], - "contexts": { - "app": { - "app_memory": "[[highNumber]]", - "app_start_time": "[[ISODateString]]" - }, - "cloud_resource": {}, - "culture": { - "locale": "en-US", - "timezone": "Europe/Vienna" - }, - "device": { - "arch": "arm64", - "boot_time": "[[ISODateString]]", - "cpu_description": "Apple M1 Pro", - "free_memory": "[[highNumber]]", - "memory_size": "[[highNumber]]", - "processor_count": 10, - "processor_frequency": "[[highNumber]]" - }, - "os": { - "build": "23C64", - "kernel_version": "23.2.0", - "name": "macOS", - "version": "14.2" - }, - "runtime": { - "name": "node", - "version": "v20.12.1" - }, - "trace": { - "data": { - "http.response.status_code": 200, - "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]]", - "status": "ok", - "tags": { - "http.status_code": "200" - }, - "trace_id": "[[ID2]]" - } - }, - "environment": "qa", - "event_id": "[[ID1]]", - "modules": { - "ansi-styles": "4.3.0", - "balanced-match": "1.0.2", - "brace-expansion": "2.0.1", - "caniuse-lite": "1.0.30001610", - "commondir": "1.0.1", - "estree-walker": "2.0.2", - "fs.realpath": "1.0.0", - "function-bind": "1.1.2", - "has-flag": "4.0.0", - "hasown": "2.0.2", - "inflight": "1.0.6", - "inherits": "2.0.4", - "is-core-module": "2.13.1", - "is-reference": "1.2.1", - "js-tokens": "4.0.0", - "localforage": "1.10.0", - "loose-envify": "1.4.0", - "nanoid": "3.3.7", - "next": "13.2.0", - "once": "1.4.0", - "picocolors": "1.0.0", - "picomatch": "2.3.1", - "postcss": "8.4.14", - "react": "18.2.0", - "react-dom": "18.2.0", - "resolve": "1.22.8", - "rollup": "2.78.0", - "scheduler": "0.23.0", - "source-map-js": "1.2.0", - "stacktrace-parser": "0.1.10", - "styled-jsx": "5.1.1", - "wrappy": "1.0.2" - }, - "platform": "node", - "request": { - "cookies": {}, - "headers": { - "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=1e639b3a12f042eb99339c3baac20ffa", - "cache-control": "no-cache", - "connection": "keep-alive", - "host": "localhost:3030", - "pragma": "no-cache", - "referer": "http://localhost:3030/test-route-handlers", - "sec-fetch-dest": "empty", - "sec-fetch-mode": "cors", - "sec-fetch-site": "same-origin", - "sentry-trace": "1e639b3a12f042eb99339c3baac20ffa-84813d02de47733d", - "user-agent": "[[user-agent]]" - }, - "url": "http://localhost:3030" - }, - "sdk": { - "integrations": [ - "InboundFilters", - "FunctionToString", - "LinkedErrors", - "RequestData", - "Console", - "Undici", - "OnUnhandledRejection", - "ContextLines", - "LocalVariables", - "Context", - "Modules", - "RewriteFrames", - "Http", - "OnUncaughtException" - ], - "name": "sentry.javascript.nextjs", - "packages": [ - { - "name": "npm:@sentry/nextjs", - "version": "7.110.1" - }, - { - "name": "npm:@sentry/node", - "version": "7.110.1" - } - ], - "version": "7.110.1" - }, - "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": { - "source": "route" - }, - "type": "transaction" - } -] diff --git a/payload-files/nextjs-13_2_0/_api_test-local-variables-uncaught--event.json b/payload-files/nextjs-13_2_0/_api_test-local-variables-uncaught--event.json index cced3b8..bf6b5e5 100644 --- a/payload-files/nextjs-13_2_0/_api_test-local-variables-uncaught--event.json +++ b/payload-files/nextjs-13_2_0/_api_test-local-variables-uncaught--event.json @@ -4,105 +4,23 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.4" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" + "release": "IcVjDshBkowH13rHGKACD", + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]", + "transaction": "GET /api/test-local-variables-uncaught" } }, { "type": "event" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled client and server successfully in 255 ms (1321 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 91 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-success/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 108 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-error/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 98 ms (504 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success-manual/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 96 ms (506 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error-manual/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 99 ms (508 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-local-variables-uncaught/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 95 ms (510 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -130,22 +48,23 @@ }, "runtime": { "name": "node", - "version": "v20.12.1" + "version": "v20.11.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]]" } }, + "debug_meta": { + "images": [ + { + "code_file": "app:///_next/server/app/api/test-local-variables-uncaught/route.js", + "debug_id": "[[ID5]]", + "type": "sourcemap" + } + ] + }, "environment": "qa", "event_id": "[[ID1]]", "exception": { @@ -157,953 +76,99 @@ }, "stacktrace": { "frames": [ - { - "colno": 36, - "context_line": " const cacheEntry = await responseGenerator(resolved, !!cachedResponse);", - "filename": "[[FILENAME1]]", - "function": "", - "in_app": false, - "lineno": 83, - "module": "next.dist.server.response-cache:index", - "post_context": [ - " const resolveValue = cacheEntry === null ? null : {", - " ...cacheEntry,", - " isMiss: !cachedResponse", - " };", - " // for manual revalidate wait to resolve until cache is set", - " if (!context.isManualRevalidate) {", - " resolve1(resolveValue);" - ], - "pre_context": [ - " });", - " if (!cachedResponse.isStale || context.isPrefetch) {", - " // The cached value is still valid, so we don't need", - " // to update it yet.", - " return;", - " }", - " }" - ] - }, - { - "colno": 28, - "context_line": " const result = await doRender();", - "filename": "[[FILENAME2]]", - "function": "cacheEntry1.responseCache.get.incrementalCache.incrementalCache", - "in_app": false, - "lineno": 926, - "module": "next.dist.server:base-server", - "post_context": [ - " if (!result) {", - " return null;", - " }", - " return {", - " ...result,", - " revalidate: result.revalidate !== undefined ? result.revalidate : /* default to minimum revalidate (this should be an invariant) */ 1", - " };" - ], - "pre_context": [ - " }", - " // Prevent caching this result", - " delete result.revalidate;", - " return result;", - " }", - " }", - " }" - ] - }, - { - "colno": 32, - "context_line": " let response = await this.handlers.handle(match, req, res, context, isSSG);", - "filename": "[[FILENAME2]]", - "function": "doRender", - "in_app": false, - "lineno": 743, - "module": "next.dist.server:base-server", - "post_context": [ - " if (response) {", - " if (isSSG && process.env.NEXT_RUNTIME !== \"edge\") {", - " const blob = await response.blob();", - " const headers = Object.fromEntries(response.headers);", - " if (!headers[\"content-type\"] && blob.type) {", - " headers[\"content-type\"] = blob.type;", - " }" - ], - "pre_context": [ - " const supportsDynamicHTML = !(isSSG || hasStaticPaths);", - " const match = pathname !== \"/_error\" && !is404Page && !is500Page ? (0, _requestMeta).getRequestMeta(req, \"_nextMatch\") : undefined;", - " if (match) {", - " const context = {", - " supportsDynamicHTML,", - " incrementalCache", - " };" - ] - }, - { - "colno": 24, - "context_line": " const result = await handler.handle(match, req, res, context, bubbleResult);", - "filename": "[[FILENAME3]]", - "function": "RouteHandlerManager.handle", - "in_app": false, - "lineno": 16, - "module": "next.dist.server.future.route-handler-managers:route-handler-manager", - "post_context": [ - " if (bubbleResult) {", - " return result;", - " }", - " return true;", - " }", - "}", - "exports.RouteHandlerManager = RouteHandlerManager;" - ], - "pre_context": [ - " throw new Error(\"Invariant: duplicate route handler added for kind\");", - " }", - " this.handlers[kind] = handler;", - " }", - " async handle(match, req, res, context, bubbleResult) {", - " const handler = this.handlers[match.definition.kind];", - " if (!handler) return false;" - ] - }, - { - "colno": 5, - "filename": "[[FILENAME4]]", - "function": "process.processTicksAndRejections", - "in_app": false, - "lineno": 95, - "module": "task_queues", - "platform": "nodejs" - }, - { - "colno": 41, - "context_line": " const response = await this.execute(match, appRouteModule, req, res, context);", - "filename": "[[FILENAME5]]", - "function": "AppRouteRouteHandler.handle", - "in_app": false, - "lineno": 348, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " if (bubbleResult) {", - " return response;", - " }", - " // Send the response back to the response.", - " await sendResponse(req, res, response);", - " } catch (err) {", - " const response = resolveHandlerError(err, bubbleResult);" - ], - "pre_context": [ - " }", - " async handle(match, req, res, context, bubbleResult) {", - " try {", - " // Load the module using the module loader.", - " const appRouteModule = await this.moduleLoader.load(match.definition.filename);", - " (0, _patchFetch).patchFetch(appRouteModule);", - " // Execute the route to get the response." - ] - }, - { - "colno": 69, - "context_line": " const response = await this.requestAsyncLocalStorageWrapper.wrap(requestAsyncStorage, {", - "filename": "[[FILENAME5]]", - "function": "AppRouteRouteHandler.execute", - "in_app": false, - "lineno": 214, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " req: req.originalRequest,", - " res: res.originalResponse", - " }, ()=>this.staticAsyncLocalStorageWrapper.wrap(staticGenerationAsyncStorage, {", - " pathname: definition.pathname,", - " renderOpts: context || {}", - " }, ()=>{", - " const _req = request ? request : wrapRequest(req);" - ], - "pre_context": [ - " request) {", - " // This is added by the webpack loader, we load it directly from the module.", - " const { requestAsyncStorage , staticGenerationAsyncStorage } = module;", - " // Get the handler function for the given method.", - " const handle = this.resolve(req.method, module);", - " // Run the handler with the request AsyncLocalStorage to inject the helper", - " // support." - ] - }, - { - "colno": 43, - "context_line": " return RequestAsyncStorageWrapper.wrap(storage, context, callback);", - "filename": "[[FILENAME6]]", - "function": "RequestAsyncStorageWrapper.wrap", - "in_app": false, - "lineno": 30, - "module": "next.dist.server.async-storage:request-async-storage-wrapper", - "post_context": [ - " }", - " /**", - " * @deprecated instance method should be used in favor of the static method", - " */ static wrap(storage, { req , res , renderOpts }, callback) {", - " // Reads of this are cached on the `req` object, so this should resolve", - " // instantly. There's no need to pass this data down from a previous", - " // invoke, where we'd have to consider server & serverless." - ], - "pre_context": [ - " * store using hooks.", - " *", - " * @param storage underlying storage object returned by the module", - " * @param context context to seed the store", - " * @param callback function to call within the scope of the context", - " * @returns the result returned by the callback", - " */ wrap(storage, context, callback) {" - ] - }, - { - "colno": 24, - "context_line": " return storage.run(store, callback);", - "filename": "[[FILENAME6]]", - "function": "RequestAsyncStorageWrapper.wrap", - "in_app": false, - "lineno": 65, - "module": "next.dist.server.async-storage:request-async-storage-wrapper", - "post_context": [ - " }", - "}", - "exports.RequestAsyncStorageWrapper = RequestAsyncStorageWrapper;", - "", - "//# sourceMappingURL=request-async-storage-wrapper.js.map" - ], - "pre_context": [ - " }", - " });", - " }", - " return cachedCookiesInstance;", - " },", - " previewData", - " };" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 52, - "context_line": " }, ()=>this.staticAsyncLocalStorageWrapper.wrap(staticGenerationAsyncStorage, {", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 217, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " pathname: definition.pathname,", - " renderOpts: context || {}", - " }, ()=>{", - " const _req = request ? request : wrapRequest(req);", - " // We can currently only statically optimize if only GET/HEAD", - " // are used as a Prerender can't be used conditionally based", - " // on the method currently" - ], - "pre_context": [ - " // Get the handler function for the given method.", - " const handle = this.resolve(req.method, module);", - " // Run the handler with the request AsyncLocalStorage to inject the helper", - " // support.", - " const response = await this.requestAsyncLocalStorageWrapper.wrap(requestAsyncStorage, {", - " req: req.originalRequest,", - " res: res.originalResponse" - ] - }, - { - "colno": 52, - "context_line": " return StaticGenerationAsyncStorageWrapper.wrap(storage, context, callback);", - "filename": "[[FILENAME8]]", - "function": "StaticGenerationAsyncStorageWrapper.wrap", - "in_app": false, - "lineno": 7, - "module": "next.dist.server.async-storage:static-generation-async-storage-wrapper", - "post_context": [ - " }", - " /**", - " * @deprecated instance method should be used in favor of the static method", - " */ static wrap(storage, { pathname , renderOpts }, callback) {", - " /**", - " * Rules of Static & Dynamic HTML:", - " *" - ], - "pre_context": [ - "\"use strict\";", - "Object.defineProperty(exports, \"__esModule\", {", - " value: true", - "});", - "class StaticGenerationAsyncStorageWrapper {", - " wrap(storage, context, callback) {" - ] - }, { "colno": 24, - "context_line": " return storage.run(store, callback);", - "filename": "[[FILENAME8]]", - "function": "StaticGenerationAsyncStorageWrapper.wrap", + "context_line": " return super.with(ctx2, fn, thisArg, ...args);", + "filename": "[[FILENAME1]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 33, - "module": "next.dist.server.async-storage:static-generation-async-storage-wrapper", + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index", "post_context": [ " }", - "}", - "exports.StaticGenerationAsyncStorageWrapper = StaticGenerationAsyncStorageWrapper;", - "", - "//# sourceMappingURL=static-generation-async-storage-wrapper.js.map" - ], - "pre_context": [ - " const store = {", - " isStaticGeneration,", - " pathname,", - " incrementalCache: renderOpts.incrementalCache,", - " isRevalidate: renderOpts.isRevalidate", - " };", - " renderOpts.store = store;" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 24, - "context_line": " return handle(wrappedReq, {", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 306, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " params", - " });", - " }));", - " // If the handler did't return a valid response, then return the internal", - " // error response.", - " if (!(response instanceof Response)) {", - " // TODO: validate the correct handling behavior, maybe log something?" - ], - "pre_context": [ - " },", - " set (target, prop, value) {", - " handleReqBailout(prop);", - " target[prop] = value;", - " return true;", - " }", - " });" - ] - }, - { - "colno": 10, - "filename": "[[FILENAME9]]", - "function": "Object.apply", - "in_app": false, - "lineno": 64, - "module": "route.ts" - }, - { - "colno": 19, - "context_line": " return core.withIsolationScope(async isolationScope => {", - "filename": "[[FILENAME10]]", - "function": "Object.apply", - "in_app": false, - "lineno": 27, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " isolationScope.setSDKProcessingMetadata({", - " request: {", - " headers: headers ? utils.winterCGHeadersToDict(headers) : undefined,", - " },", - " });", - " return core.continueTrace(", - " {" - ], - "pre_context": [ - " context,", - ") {", - " core.addTracingExtensions();", - " // eslint-disable-next-line deprecation/deprecation", - " const { method, parameterizedRoute, baggageHeader, sentryTraceHeader, headers } = context;", - " return new Proxy(routeHandler, {", - " apply: (originalFunction, thisArg, args) => {" - ] - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME11]]", - "function": "Object.withIsolationScope", - "in_app": false, - "lineno": 207, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " return callback(hub.getIsolationScope());", - " });", - "}", - "", - "/**", - " * Forks the current scope and sets the provided span as active span in the context of the provided callback.", - " *" - ], - "pre_context": [ - " * applications directly because it comes with pitfalls. Use at your own risk!", - " *", - " * @param callback The callback in which the passed isolation scope is active. (Note: In environments without async", - " * context strategy, the currently active isolation scope may change within execution of the callback.)", - " * @returns The same value that `callback` returns.", - " */", - "function withIsolationScope(callback) {" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME12]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ " }", "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", + " return SentryContextManager ;", "}", "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME13]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" + "/** If this attribute is true, it means that the parent is a remote span. */" ], "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", - " }", + " const ctx2 = ctx1", + " .deleteValue(SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY)", + " .deleteValue(SENTRY_FORK_SET_SCOPE_CONTEXT_KEY)", + " .deleteValue(SENTRY_FORK_SET_ISOLATION_SCOPE_CONTEXT_KEY);", "", - " const newHub = createNewHub(existingHub);", + " setContextOnScope(newCurrentScope, ctx2);", "" ] }, { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME13]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 12, - "context_line": " return callback(hub.getIsolationScope());", - "filename": "[[FILENAME11]]", - "function": "", - "in_app": false, - "lineno": 208, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " });", - "}", - "", - "/**", - " * Forks the current scope and sets the provided span as active span in the context of the provided callback.", - " *", - " * @param span Spans started in the context of the provided callback will be children of this span." - ], - "pre_context": [ - " *", - " * @param callback The callback in which the passed isolation scope is active. (Note: In environments without async", - " * context strategy, the currently active isolation scope may change within execution of the callback.)", - " * @returns The same value that `callback` returns.", - " */", - "function withIsolationScope(callback) {", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 21, - "context_line": " return core.continueTrace(", - "filename": "[[FILENAME10]]", - "function": "", + "colno": 40, + "context_line": " return this._asyncLocalStorage.run(context, cb, ...args);", + "filename": "[[FILENAME2]]", + "function": "SentryContextManager.with", "in_app": false, "lineno": 33, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager", "post_context": [ - " {", - " sentryTrace: _nullishCoalesce(_nullishCoalesce(sentryTraceHeader, () => ( _optionalChain([headers, 'optionalAccess', _ => _.get, {snip}", - " baggage: _nullishCoalesce(baggageHeader, () => ( _optionalChain([headers, 'optionalAccess', _3 => _3.get, 'call', _4 => _4('baggage')]))),", - " },", - " async () => {", - " try {", - " return await core.startSpan(" - ], - "pre_context": [ - " apply: (originalFunction, thisArg, args) => {", - " return core.withIsolationScope(async isolationScope => {", - " isolationScope.setSDKProcessingMetadata({", - " request: {", - " headers: headers ? utils.winterCGHeadersToDict(headers) : undefined,", - " },", - " });" - ] - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME14]]", - "function": "Object.continueTrace", - "in_app": false, - "lineno": 270, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " return callback(transactionContext);", - " });", - "};", - "", - "function createChildSpanOrTransaction(", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1," - ], - "pre_context": [ - " }),", - " };", - "", - " if (!callback) {", - " return transactionContext;", - " }", - "" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME12]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " }", - "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", - "}", - "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME13]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", " }", - "", - " const newHub = createNewHub(existingHub);", - "" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME13]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", + " enable() {", + " return this;", " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 12, - "context_line": " return callback(transactionContext);", - "filename": "[[FILENAME14]]", - "function": "", - "in_app": false, - "lineno": 271, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " });", - "};", - "", - "function createChildSpanOrTransaction(", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1,", - " {" + " disable() {", + " this._asyncLocalStorage.disable();", + " return this;" ], "pre_context": [ - " };", - "", - " if (!callback) {", - " return transactionContext;", - " }", - "", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 33, - "context_line": " return await core.startSpan(", - "filename": "[[FILENAME10]]", - "function": "", - "in_app": false, - "lineno": 40, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " {", - " op: 'http.server',", - " name: `${method} ${parameterizedRoute}`,", - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " }," - ], - "pre_context": [ - " return core.continueTrace(", - " {", - " sentryTrace: _nullishCoalesce(_nullishCoalesce(sentryTraceHeader, () => ( _optionalChain([headers, 'optionalAccess', _ => _.get, {snip}", - " baggage: _nullishCoalesce(baggageHeader, () => ( _optionalChain([headers, 'optionalAccess', _3 => _3.get, 'call', _4 => _4('baggage')]))),", - " },", - " async () => {", - " try {" - ] - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME14]]", - "function": "Object.startSpan", - "in_app": false, - "lineno": 82, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " return exports$1.withScope(context.scope, scope => {", - " // eslint-disable-next-line deprecation/deprecation", - " const hub$1 = hub.getCurrentHub();", - " // eslint-disable-next-line deprecation/deprecation", - " const parentSpan = scope.getSpan();", - "", - " const shouldSkipSpan = context.onlyIfParent && !parentSpan;" - ], - "pre_context": [ - " * Note that if you have not enabled tracing extensions via `addTracingExtensions`", - " * or you didn't set `tracesSampleRate`, this function will not generate spans", - " * and the `span` returned from the callback will be undefined.", - " */", - "function startSpan(context, callback) {", - " const spanContext = normalizeContext(context);", - "" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME12]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " }", - "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", - "}", - "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME13]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", " }", - "", - " const newHub = createNewHub(existingHub);", - "" + " active() {", + " var _a;", + " return (_a = this._asyncLocalStorage.getStore()) !== null && _a !== void 0 ? _a : api_1.ROOT_CONTEXT;", + " }", + " with(context, fn, thisArg, ...args) {", + " const cb = thisArg == null ? fn : fn.bind(thisArg);" ] }, { "colno": 14, - "filename": "[[FILENAME7]]", + "filename": "[[FILENAME3]]", "function": "AsyncLocalStorage.run", "in_app": false, "lineno": 346, "module": "node:async_hooks" }, { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME13]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 22, - "context_line": " return exports$1.withScope(context.scope, scope => {", - "filename": "[[FILENAME14]]", - "function": "", - "in_app": false, - "lineno": 83, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " // eslint-disable-next-line deprecation/deprecation", - " const hub$1 = hub.getCurrentHub();", - " // eslint-disable-next-line deprecation/deprecation", - " const parentSpan = scope.getSpan();", - "", - " const shouldSkipSpan = context.onlyIfParent && !parentSpan;", - " const activeSpan = shouldSkipSpan" - ], - "pre_context": [ - " * or you didn't set `tracesSampleRate`, this function will not generate spans", - " * and the `span` returned from the callback will be undefined.", - " */", - "function startSpan(context, callback) {", - " const spanContext = normalizeContext(context);", - "", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 20, - "context_line": " return hub$1.withScope(callback);", - "filename": "[[FILENAME11]]", - "function": "Object.withScope", + "colno": 17, + "context_line": " return core.handleCallbackErrors(", + "filename": "[[FILENAME1]]", + "function": "?", "in_app": false, - "lineno": 177, - "module": "@sentry.core.cjs:exports", + "lineno": 861, + "module": "@sentry.opentelemetry.cjs:index", "post_context": [ - " }", - "", - " // eslint-disable-next-line deprecation/deprecation", - " return hub$1.withScope(() => {", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1.getStackTop().scope = scope ;", - " return callback(scope );" + " () => callback(span),", + " () => {", + " // Only set the span status to ERROR when there wasn't any status set before, in order to avoid stomping useful span statuses", + " if (core.spanToJSON(span).status === undefined) {", + " span.setStatus({ code: api.SpanStatusCode.ERROR });", + " }", + " }," ], "pre_context": [ - " const hub$1 = hub.getCurrentHub();", + " const ctx = shouldSkipSpan ? core$1.suppressTracing(activeCtx) : activeCtx;", "", - " // If a scope is defined, we want to make this the active scope instead of the default one", - " if (rest.length === 2) {", - " const [scope, callback] = rest;", - " if (!scope) {", - " // eslint-disable-next-line deprecation/deprecation" - ] - }, - { - "colno": 28, - "context_line": " maybePromiseResult = callback(scope);", - "filename": "[[FILENAME12]]", - "function": "Hub.withScope", - "in_app": false, - "lineno": 194, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " } catch (e) {", - " // eslint-disable-next-line deprecation/deprecation", - " this.popScope();", - " throw e;", - " }", - "", - " if (utils.isThenable(maybePromiseResult)) {" - ], - "pre_context": [ - " */", - " withScope(callback) {", - " // eslint-disable-next-line deprecation/deprecation", - " const scope = this.pushScope();", + " const spanContext = getSpanContext(options);", "", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 35, - "context_line": " return handleCallbackErrors.handleCallbackErrors(", - "filename": "[[FILENAME14]]", - "function": "", - "in_app": false, - "lineno": 99, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " () => callback(activeSpan),", - " () => {", - " // Only update the span status if it hasn't been changed yet", - " if (activeSpan) {", - " const { status } = spanUtils.spanToJSON(activeSpan);", - " if (!status || status === 'ok') {", - " activeSpan.setStatus('internal_error');" - ], - "pre_context": [ - " : createChildSpanOrTransaction(hub$1, {", - " parentSpan,", - " spanContext,", - " forceTransaction: context.forceTransaction,", - " scope,", - " });", + " return tracer.startActiveSpan(name, spanContext, ctx, span => {", + " _applySentryAttributesToSpan(span, options);", "" ] }, { "colno": 26, "context_line": " maybePromiseResult = fn();", - "filename": "[[FILENAME15]]", + "filename": "[[FILENAME4]]", "function": "Object.handleCallbackErrors", "in_app": false, "lineno": 26, @@ -1128,63 +193,63 @@ ] }, { - "colno": 15, - "context_line": " () => callback(activeSpan),", - "filename": "[[FILENAME14]]", - "function": "handleCallbackErrors.handleCallbackErrors.status.status", + "colno": 13, + "context_line": " () => callback(span),", + "filename": "[[FILENAME1]]", + "function": "?", "in_app": false, - "lineno": 100, - "module": "@sentry.core.cjs.tracing:trace", + "lineno": 862, + "module": "@sentry.opentelemetry.cjs:index", "post_context": [ - " () => {", - " // Only update the span status if it hasn't been changed yet", - " if (activeSpan) {", - " const { status } = spanUtils.spanToJSON(activeSpan);", - " if (!status || status === 'ok') {", - " activeSpan.setStatus('internal_error');", - " }" + " () => {", + " // Only set the span status to ERROR when there wasn't any status set before, in order to avoid stomping useful span statuses", + " if (core.spanToJSON(span).status === undefined) {", + " span.setStatus({ code: api.SpanStatusCode.ERROR });", + " }", + " },", + " () => span.end()," ], "pre_context": [ - " parentSpan,", - " spanContext,", - " forceTransaction: context.forceTransaction,", - " scope,", - " });", "", - " return handleCallbackErrors.handleCallbackErrors(" + " const spanContext = getSpanContext(options);", + "", + " return tracer.startActiveSpan(name, spanContext, ctx, span => {", + " _applySentryAttributesToSpan(span, options);", + "", + " return core.handleCallbackErrors(" ] }, { - "colno": 47, - "context_line": " const response = await core.handleCallbackErrors(", - "filename": "[[FILENAME10]]", - "function": "", + "colno": 45, + "context_line": " const response = await core.handleCallbackErrors(", + "filename": "[[FILENAME5]]", + "function": "?", "in_app": false, - "lineno": 50, + "lineno": 54, "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", "post_context": [ - " () => originalFunction.apply(thisArg, args),", - " error => {", - " // Next.js throws errors when calling `redirect()`. We don't wanna report these.", - " if (!nextNavigationErrorUtils.isRedirectNavigationError(error)) {", - " core.captureException(error, {", - " mechanism: {", - " handled: false," + " () => originalFunction.apply(thisArg, args),", + " error => {", + " // Next.js throws errors when calling `redirect()`. We don't wanna report these.", + " if (nextNavigationErrorUtils.isRedirectNavigationError(error)) {", + " // Don't do anything", + " } else if (nextNavigationErrorUtils.isNotFoundNavigationError(error) && span) {", + " span.setStatus({ code: core.SPAN_STATUS_ERROR, message: 'not_found' });" ], "pre_context": [ - " name: `${method} ${parameterizedRoute}`,", - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " },", + " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", + " [core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'http.server',", + " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", " },", - " async span => {" + " forceTransaction: true,", + " },", + " async span => {" ] }, { "colno": 26, "context_line": " maybePromiseResult = fn();", - "filename": "[[FILENAME15]]", + "filename": "[[FILENAME6]]", "function": "Object.handleCallbackErrors", "in_app": false, "lineno": 26, @@ -1209,39 +274,58 @@ ] }, { - "colno": 44, - "context_line": " () => originalFunction.apply(thisArg, args),", - "filename": "[[FILENAME10]]", - "function": "", + "colno": 42, + "context_line": " () => originalFunction.apply(thisArg, args),", + "filename": "[[FILENAME5]]", + "function": "?", "in_app": false, - "lineno": 51, + "lineno": 55, "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", "post_context": [ - " error => {", - " // Next.js throws errors when calling `redirect()`. We don't wanna report these.", - " if (!nextNavigationErrorUtils.isRedirectNavigationError(error)) {", - " core.captureException(error, {", - " mechanism: {", - " handled: false,", - " }," + " error => {", + " // Next.js throws errors when calling `redirect()`. We don't wanna report these.", + " if (nextNavigationErrorUtils.isRedirectNavigationError(error)) {", + " // Don't do anything", + " } else if (nextNavigationErrorUtils.isNotFoundNavigationError(error) && span) {", + " span.setStatus({ code: core.SPAN_STATUS_ERROR, message: 'not_found' });", + " } else {" ], "pre_context": [ - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " },", + " [core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'http.server',", + " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", " },", - " async span => {", - " const response = await core.handleCallbackErrors(" + " forceTransaction: true,", + " },", + " async span => {", + " const response = await core.handleCallbackErrors(" ] }, { "colno": 11, - "filename": "[[FILENAME9]]", + "context_line": " throw new Error(`Uncaught Local Variable Error - ${JSON.stringify({", + "filename": "[[FILENAME7]]", "function": "GET$1", - "in_app": false, - "lineno": 24, - "module": "route.ts" + "in_app": true, + "lineno": 70, + "module": "route", + "post_context": [ + " randomVariableToRecord", + " })}`);", + "}", + "", + "function wrapHandler(handler, method) {", + " // Running the instrumentation code during the build phase will mark any function as \"dynamic\" because we're accessing", + " // the Request object. We do not want to turn handlers dynamic so we skip instrumentation in the build phase." + ], + "pre_context": [ + "", + "", + "", + "", + "const dynamic = \"force-dynamic\";", + "async function GET$1() {", + " const randomVariableToRecord = \"LOCAL_VARIABLE\";" + ] } ] }, @@ -1252,46 +336,33 @@ }, "modules": { "ansi-styles": "4.3.0", - "balanced-match": "1.0.2", - "brace-expansion": "2.0.1", - "caniuse-lite": "1.0.30001610", - "commondir": "1.0.1", - "estree-walker": "2.0.2", - "fs.realpath": "1.0.0", + "debug": "4.3.4", "function-bind": "1.1.2", "has-flag": "4.0.0", "hasown": "2.0.2", - "inflight": "1.0.6", - "inherits": "2.0.4", + "import-in-the-middle": "1.7.1", "is-core-module": "2.13.1", - "is-reference": "1.2.1", - "js-tokens": "4.0.0", - "localforage": "1.10.0", - "loose-envify": "1.4.0", - "nanoid": "3.3.7", + "module-details-from-path": "1.0.3", "next": "13.2.0", - "once": "1.4.0", - "picocolors": "1.0.0", - "picomatch": "2.3.1", - "postcss": "8.4.14", - "react": "18.2.0", - "react-dom": "18.2.0", + "opentelemetry-instrumentation-fetch-node": "1.2.0", + "require-in-the-middle": "7.3.0", "resolve": "1.22.8", - "rollup": "2.78.0", - "scheduler": "0.23.0", - "source-map-js": "1.2.0", + "semver": "7.6.0", + "shimmer": "1.2.1", "stacktrace-parser": "0.1.10", "styled-jsx": "5.1.1", - "wrappy": "1.0.2" + "supports-color": "5.5.0", + "yallist": "4.0.0" }, "platform": "node", + "release": "IcVjDshBkowH13rHGKACD", "request": { "cookies": {}, "headers": { "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=1e639b3a12f042eb99339c3baac20ffa", + "baggage": "sentry-environment=qa,sentry-release=IcVjDshBkowH13rHGKACD,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=24dadd1955df40b8b534dcb371f365c9,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", @@ -1300,7 +371,7 @@ "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", - "sentry-trace": "1e639b3a12f042eb99339c3baac20ffa-84813d02de47733d", + "sentry-trace": "24dadd1955df40b8b534dcb371f365c9-b9b84bb3f98c807f-1", "user-agent": "[[user-agent]]" }, "url": "http://localhost:3030" @@ -1312,35 +383,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.4" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.4" } ], - "version": "7.110.1" - }, - "server_name": "D9M3PY4LQ7.local", - "tags": { - "runtime": "node", - "transaction": "GET /api/test-local-variables-uncaught" + "version": "8.0.0-beta.4" }, + "server_name": "D9M3PY4LQ7.oekorouter.com", "timestamp": "[[timestamp]]", - "transaction": " " + "transaction": "GET /api/test-local-variables-uncaught" } -] +] \ No newline at end of file diff --git a/payload-files/nextjs-13_2_0/_api_test-local-variables-uncaught--transaction.json b/payload-files/nextjs-13_2_0/_api_test-local-variables-uncaught--transaction.json index 00fcd79..4458439 100644 --- a/payload-files/nextjs-13_2_0/_api_test-local-variables-uncaught--transaction.json +++ b/payload-files/nextjs-13_2_0/_api_test-local-variables-uncaught--transaction.json @@ -4,105 +4,23 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.4" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" + "release": "IcVjDshBkowH13rHGKACD", + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]", + "transaction": "GET /api/test-local-variables-uncaught" } }, { "type": "transaction" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled client and server successfully in 255 ms (1321 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 91 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-success/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 108 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-error/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 98 ms (504 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success-manual/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 96 ms (506 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error-manual/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 99 ms (508 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-local-variables-uncaught/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 95 ms (510 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -128,12 +46,23 @@ "name": "macOS", "version": "14.2" }, + "otel": { + "resource": { + "service.name": "node", + "service.namespace": "sentry", + "service.version": "8.0.0-beta.4", + "telemetry.sdk.language": "nodejs", + "telemetry.sdk.name": "opentelemetry", + "telemetry.sdk.version": "1.24.0" + } + }, "runtime": { "name": "node", - "version": "v20.12.1" + "version": "v20.11.1" }, "trace": { "data": { + "otel.kind": "INTERNAL", "sentry.op": "http.server", "sentry.origin": "auto.function.nextjs", "sentry.sample_rate": 1, @@ -143,7 +72,7 @@ "origin": "auto.function.nextjs", "parent_span_id": "[[ID3]]", "span_id": "[[ID4]]", - "status": "internal_error", + "status": "unknown_error", "trace_id": "[[ID2]]" } }, @@ -151,46 +80,33 @@ "event_id": "[[ID1]]", "modules": { "ansi-styles": "4.3.0", - "balanced-match": "1.0.2", - "brace-expansion": "2.0.1", - "caniuse-lite": "1.0.30001610", - "commondir": "1.0.1", - "estree-walker": "2.0.2", - "fs.realpath": "1.0.0", + "debug": "4.3.4", "function-bind": "1.1.2", "has-flag": "4.0.0", "hasown": "2.0.2", - "inflight": "1.0.6", - "inherits": "2.0.4", + "import-in-the-middle": "1.7.1", "is-core-module": "2.13.1", - "is-reference": "1.2.1", - "js-tokens": "4.0.0", - "localforage": "1.10.0", - "loose-envify": "1.4.0", - "nanoid": "3.3.7", + "module-details-from-path": "1.0.3", "next": "13.2.0", - "once": "1.4.0", - "picocolors": "1.0.0", - "picomatch": "2.3.1", - "postcss": "8.4.14", - "react": "18.2.0", - "react-dom": "18.2.0", + "opentelemetry-instrumentation-fetch-node": "1.2.0", + "require-in-the-middle": "7.3.0", "resolve": "1.22.8", - "rollup": "2.78.0", - "scheduler": "0.23.0", - "source-map-js": "1.2.0", + "semver": "7.6.0", + "shimmer": "1.2.1", "stacktrace-parser": "0.1.10", "styled-jsx": "5.1.1", - "wrappy": "1.0.2" + "supports-color": "5.5.0", + "yallist": "4.0.0" }, "platform": "node", + "release": "IcVjDshBkowH13rHGKACD", "request": { "cookies": {}, "headers": { "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=1e639b3a12f042eb99339c3baac20ffa", + "baggage": "sentry-environment=qa,sentry-release=IcVjDshBkowH13rHGKACD,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=24dadd1955df40b8b534dcb371f365c9,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", @@ -199,7 +115,7 @@ "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", - "sentry-trace": "1e639b3a12f042eb99339c3baac20ffa-84813d02de47733d", + "sentry-trace": "24dadd1955df40b8b534dcb371f365c9-b9b84bb3f98c807f-1", "user-agent": "[[user-agent]]" }, "url": "http://localhost:3030" @@ -211,36 +127,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.4" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.4" } ], - "version": "7.110.1" + "version": "8.0.0-beta.4" }, - "server_name": "D9M3PY4LQ7.local", + "server_name": "D9M3PY4LQ7.oekorouter.com", "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": { @@ -248,4 +172,4 @@ }, "type": "transaction" } -] +] \ No newline at end of file diff --git a/payload-files/nextjs-13_2_0/_api_test-param-error_[param]--event.json b/payload-files/nextjs-13_2_0/_api_test-param-error_[param]--event.json index 4d5d0ee..cf2e772 100644 --- a/payload-files/nextjs-13_2_0/_api_test-param-error_[param]--event.json +++ b/payload-files/nextjs-13_2_0/_api_test-param-error_[param]--event.json @@ -4,12 +4,13 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.4" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", + "release": "IcVjDshBkowH13rHGKACD", "sample_rate": "1", "sampled": "true", "trace_id": "[[ID2]]", @@ -20,56 +21,6 @@ "type": "event" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled client and server successfully in 255 ms (1321 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 91 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-success/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 108 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-error/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 98 ms (504 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -97,21 +48,23 @@ }, "runtime": { "name": "node", - "version": "v20.12.1" + "version": "v20.11.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]]" } }, + "debug_meta": { + "images": [ + { + "code_file": "app:///_next/server/app/api/test-param-error/[param]/route.js", + "debug_id": "[[ID5]]", + "type": "sourcemap" + } + ] + }, "environment": "qa", "event_id": "[[ID1]]", "exception": { @@ -123,953 +76,99 @@ }, "stacktrace": { "frames": [ - { - "colno": 36, - "context_line": " const cacheEntry = await responseGenerator(resolved, !!cachedResponse);", - "filename": "[[FILENAME1]]", - "function": "", - "in_app": false, - "lineno": 83, - "module": "next.dist.server.response-cache:index", - "post_context": [ - " const resolveValue = cacheEntry === null ? null : {", - " ...cacheEntry,", - " isMiss: !cachedResponse", - " };", - " // for manual revalidate wait to resolve until cache is set", - " if (!context.isManualRevalidate) {", - " resolve1(resolveValue);" - ], - "pre_context": [ - " });", - " if (!cachedResponse.isStale || context.isPrefetch) {", - " // The cached value is still valid, so we don't need", - " // to update it yet.", - " return;", - " }", - " }" - ] - }, - { - "colno": 28, - "context_line": " const result = await doRender();", - "filename": "[[FILENAME2]]", - "function": "cacheEntry1.responseCache.get.incrementalCache.incrementalCache", - "in_app": false, - "lineno": 926, - "module": "next.dist.server:base-server", - "post_context": [ - " if (!result) {", - " return null;", - " }", - " return {", - " ...result,", - " revalidate: result.revalidate !== undefined ? result.revalidate : /* default to minimum revalidate (this should be an invariant) */ 1", - " };" - ], - "pre_context": [ - " }", - " // Prevent caching this result", - " delete result.revalidate;", - " return result;", - " }", - " }", - " }" - ] - }, - { - "colno": 32, - "context_line": " let response = await this.handlers.handle(match, req, res, context, isSSG);", - "filename": "[[FILENAME2]]", - "function": "doRender", - "in_app": false, - "lineno": 743, - "module": "next.dist.server:base-server", - "post_context": [ - " if (response) {", - " if (isSSG && process.env.NEXT_RUNTIME !== \"edge\") {", - " const blob = await response.blob();", - " const headers = Object.fromEntries(response.headers);", - " if (!headers[\"content-type\"] && blob.type) {", - " headers[\"content-type\"] = blob.type;", - " }" - ], - "pre_context": [ - " const supportsDynamicHTML = !(isSSG || hasStaticPaths);", - " const match = pathname !== \"/_error\" && !is404Page && !is500Page ? (0, _requestMeta).getRequestMeta(req, \"_nextMatch\") : undefined;", - " if (match) {", - " const context = {", - " supportsDynamicHTML,", - " incrementalCache", - " };" - ] - }, { "colno": 24, - "context_line": " const result = await handler.handle(match, req, res, context, bubbleResult);", - "filename": "[[FILENAME3]]", - "function": "RouteHandlerManager.handle", - "in_app": false, - "lineno": 16, - "module": "next.dist.server.future.route-handler-managers:route-handler-manager", - "post_context": [ - " if (bubbleResult) {", - " return result;", - " }", - " return true;", - " }", - "}", - "exports.RouteHandlerManager = RouteHandlerManager;" - ], - "pre_context": [ - " throw new Error(\"Invariant: duplicate route handler added for kind\");", - " }", - " this.handlers[kind] = handler;", - " }", - " async handle(match, req, res, context, bubbleResult) {", - " const handler = this.handlers[match.definition.kind];", - " if (!handler) return false;" - ] - }, - { - "colno": 5, - "filename": "[[FILENAME4]]", - "function": "process.processTicksAndRejections", - "in_app": false, - "lineno": 95, - "module": "task_queues", - "platform": "nodejs" - }, - { - "colno": 41, - "context_line": " const response = await this.execute(match, appRouteModule, req, res, context);", - "filename": "[[FILENAME5]]", - "function": "AppRouteRouteHandler.handle", - "in_app": false, - "lineno": 348, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " if (bubbleResult) {", - " return response;", - " }", - " // Send the response back to the response.", - " await sendResponse(req, res, response);", - " } catch (err) {", - " const response = resolveHandlerError(err, bubbleResult);" - ], - "pre_context": [ - " }", - " async handle(match, req, res, context, bubbleResult) {", - " try {", - " // Load the module using the module loader.", - " const appRouteModule = await this.moduleLoader.load(match.definition.filename);", - " (0, _patchFetch).patchFetch(appRouteModule);", - " // Execute the route to get the response." - ] - }, - { - "colno": 69, - "context_line": " const response = await this.requestAsyncLocalStorageWrapper.wrap(requestAsyncStorage, {", - "filename": "[[FILENAME5]]", - "function": "AppRouteRouteHandler.execute", - "in_app": false, - "lineno": 214, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " req: req.originalRequest,", - " res: res.originalResponse", - " }, ()=>this.staticAsyncLocalStorageWrapper.wrap(staticGenerationAsyncStorage, {", - " pathname: definition.pathname,", - " renderOpts: context || {}", - " }, ()=>{", - " const _req = request ? request : wrapRequest(req);" - ], - "pre_context": [ - " request) {", - " // This is added by the webpack loader, we load it directly from the module.", - " const { requestAsyncStorage , staticGenerationAsyncStorage } = module;", - " // Get the handler function for the given method.", - " const handle = this.resolve(req.method, module);", - " // Run the handler with the request AsyncLocalStorage to inject the helper", - " // support." - ] - }, - { - "colno": 43, - "context_line": " return RequestAsyncStorageWrapper.wrap(storage, context, callback);", - "filename": "[[FILENAME6]]", - "function": "RequestAsyncStorageWrapper.wrap", - "in_app": false, - "lineno": 30, - "module": "next.dist.server.async-storage:request-async-storage-wrapper", - "post_context": [ - " }", - " /**", - " * @deprecated instance method should be used in favor of the static method", - " */ static wrap(storage, { req , res , renderOpts }, callback) {", - " // Reads of this are cached on the `req` object, so this should resolve", - " // instantly. There's no need to pass this data down from a previous", - " // invoke, where we'd have to consider server & serverless." - ], - "pre_context": [ - " * store using hooks.", - " *", - " * @param storage underlying storage object returned by the module", - " * @param context context to seed the store", - " * @param callback function to call within the scope of the context", - " * @returns the result returned by the callback", - " */ wrap(storage, context, callback) {" - ] - }, - { - "colno": 24, - "context_line": " return storage.run(store, callback);", - "filename": "[[FILENAME6]]", - "function": "RequestAsyncStorageWrapper.wrap", - "in_app": false, - "lineno": 65, - "module": "next.dist.server.async-storage:request-async-storage-wrapper", - "post_context": [ - " }", - "}", - "exports.RequestAsyncStorageWrapper = RequestAsyncStorageWrapper;", - "", - "//# sourceMappingURL=request-async-storage-wrapper.js.map" - ], - "pre_context": [ - " }", - " });", - " }", - " return cachedCookiesInstance;", - " },", - " previewData", - " };" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 52, - "context_line": " }, ()=>this.staticAsyncLocalStorageWrapper.wrap(staticGenerationAsyncStorage, {", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 217, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " pathname: definition.pathname,", - " renderOpts: context || {}", - " }, ()=>{", - " const _req = request ? request : wrapRequest(req);", - " // We can currently only statically optimize if only GET/HEAD", - " // are used as a Prerender can't be used conditionally based", - " // on the method currently" - ], - "pre_context": [ - " // Get the handler function for the given method.", - " const handle = this.resolve(req.method, module);", - " // Run the handler with the request AsyncLocalStorage to inject the helper", - " // support.", - " const response = await this.requestAsyncLocalStorageWrapper.wrap(requestAsyncStorage, {", - " req: req.originalRequest,", - " res: res.originalResponse" - ] - }, - { - "colno": 52, - "context_line": " return StaticGenerationAsyncStorageWrapper.wrap(storage, context, callback);", - "filename": "[[FILENAME8]]", - "function": "StaticGenerationAsyncStorageWrapper.wrap", - "in_app": false, - "lineno": 7, - "module": "next.dist.server.async-storage:static-generation-async-storage-wrapper", - "post_context": [ - " }", - " /**", - " * @deprecated instance method should be used in favor of the static method", - " */ static wrap(storage, { pathname , renderOpts }, callback) {", - " /**", - " * Rules of Static & Dynamic HTML:", - " *" - ], - "pre_context": [ - "\"use strict\";", - "Object.defineProperty(exports, \"__esModule\", {", - " value: true", - "});", - "class StaticGenerationAsyncStorageWrapper {", - " wrap(storage, context, callback) {" - ] - }, - { - "colno": 24, - "context_line": " return storage.run(store, callback);", - "filename": "[[FILENAME8]]", - "function": "StaticGenerationAsyncStorageWrapper.wrap", + "context_line": " return super.with(ctx2, fn, thisArg, ...args);", + "filename": "[[FILENAME1]]", + "function": "SentryContextManager.with", "in_app": false, - "lineno": 33, - "module": "next.dist.server.async-storage:static-generation-async-storage-wrapper", + "lineno": "[[highNumber]]", + "module": "@sentry.opentelemetry.cjs:index", "post_context": [ " }", - "}", - "exports.StaticGenerationAsyncStorageWrapper = StaticGenerationAsyncStorageWrapper;", - "", - "//# sourceMappingURL=static-generation-async-storage-wrapper.js.map" - ], - "pre_context": [ - " const store = {", - " isStaticGeneration,", - " pathname,", - " incrementalCache: renderOpts.incrementalCache,", - " isRevalidate: renderOpts.isRevalidate", - " };", - " renderOpts.store = store;" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 24, - "context_line": " return handle(wrappedReq, {", - "filename": "[[FILENAME5]]", - "function": "", - "in_app": false, - "lineno": 306, - "module": "next.dist.server.future.route-handlers:app-route-route-handler", - "post_context": [ - " params", - " });", - " }));", - " // If the handler did't return a valid response, then return the internal", - " // error response.", - " if (!(response instanceof Response)) {", - " // TODO: validate the correct handling behavior, maybe log something?" - ], - "pre_context": [ - " },", - " set (target, prop, value) {", - " handleReqBailout(prop);", - " target[prop] = value;", - " return true;", - " }", - " });" - ] - }, - { - "colno": 10, - "filename": "[[FILENAME9]]", - "function": "Object.apply", - "in_app": false, - "lineno": 69, - "module": "route.ts" - }, - { - "colno": 19, - "context_line": " return core.withIsolationScope(async isolationScope => {", - "filename": "[[FILENAME10]]", - "function": "Object.apply", - "in_app": false, - "lineno": 27, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " isolationScope.setSDKProcessingMetadata({", - " request: {", - " headers: headers ? utils.winterCGHeadersToDict(headers) : undefined,", - " },", - " });", - " return core.continueTrace(", - " {" - ], - "pre_context": [ - " context,", - ") {", - " core.addTracingExtensions();", - " // eslint-disable-next-line deprecation/deprecation", - " const { method, parameterizedRoute, baggageHeader, sentryTraceHeader, headers } = context;", - " return new Proxy(routeHandler, {", - " apply: (originalFunction, thisArg, args) => {" - ] - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME11]]", - "function": "Object.withIsolationScope", - "in_app": false, - "lineno": 207, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " return callback(hub.getIsolationScope());", - " });", - "}", - "", - "/**", - " * Forks the current scope and sets the provided span as active span in the context of the provided callback.", - " *" - ], - "pre_context": [ - " * applications directly because it comes with pitfalls. Use at your own risk!", - " *", - " * @param callback The callback in which the passed isolation scope is active. (Note: In environments without async", - " * context strategy, the currently active isolation scope may change within execution of the callback.)", - " * @returns The same value that `callback` returns.", - " */", - "function withIsolationScope(callback) {" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME12]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ " }", "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", + " return SentryContextManager ;", "}", "", - "/**" + "/** If this attribute is true, it means that the parent is a remote span. */" ], "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", + " const ctx2 = ctx1", + " .deleteValue(SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY)", + " .deleteValue(SENTRY_FORK_SET_SCOPE_CONTEXT_KEY)", + " .deleteValue(SENTRY_FORK_SET_ISOLATION_SCOPE_CONTEXT_KEY);", "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME13]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", + " setContextOnScope(newCurrentScope, ctx2);", "" ] }, { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME13]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 12, - "context_line": " return callback(hub.getIsolationScope());", - "filename": "[[FILENAME11]]", - "function": "", - "in_app": false, - "lineno": 208, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " });", - "}", - "", - "/**", - " * Forks the current scope and sets the provided span as active span in the context of the provided callback.", - " *", - " * @param span Spans started in the context of the provided callback will be children of this span." - ], - "pre_context": [ - " *", - " * @param callback The callback in which the passed isolation scope is active. (Note: In environments without async", - " * context strategy, the currently active isolation scope may change within execution of the callback.)", - " * @returns The same value that `callback` returns.", - " */", - "function withIsolationScope(callback) {", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 21, - "context_line": " return core.continueTrace(", - "filename": "[[FILENAME10]]", - "function": "", + "colno": 40, + "context_line": " return this._asyncLocalStorage.run(context, cb, ...args);", + "filename": "[[FILENAME2]]", + "function": "SentryContextManager.with", "in_app": false, "lineno": 33, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " {", - " sentryTrace: _nullishCoalesce(_nullishCoalesce(sentryTraceHeader, () => ( _optionalChain([headers, 'optionalAccess', _ => _.get, {snip}", - " baggage: _nullishCoalesce(baggageHeader, () => ( _optionalChain([headers, 'optionalAccess', _3 => _3.get, 'call', _4 => _4('baggage')]))),", - " },", - " async () => {", - " try {", - " return await core.startSpan(" - ], - "pre_context": [ - " apply: (originalFunction, thisArg, args) => {", - " return core.withIsolationScope(async isolationScope => {", - " isolationScope.setSDKProcessingMetadata({", - " request: {", - " headers: headers ? utils.winterCGHeadersToDict(headers) : undefined,", - " },", - " });" - ] - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME14]]", - "function": "Object.continueTrace", - "in_app": false, - "lineno": 270, - "module": "@sentry.core.cjs.tracing:trace", + "module": "@opentelemetry.context-async-hooks.build.src:AsyncLocalStorageContextManager", "post_context": [ - " return callback(transactionContext);", - " });", - "};", - "", - "function createChildSpanOrTransaction(", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1," - ], - "pre_context": [ - " }),", - " };", - "", - " if (!callback) {", - " return transactionContext;", - " }", - "" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME12]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " }", - "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", - "}", - "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME13]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", " }", - "", - " const newHub = createNewHub(existingHub);", - "" - ] - }, - { - "colno": 14, - "filename": "[[FILENAME7]]", - "function": "AsyncLocalStorage.run", - "in_app": false, - "lineno": 346, - "module": "node:async_hooks" - }, - { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME13]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", + " enable() {", + " return this;", " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 12, - "context_line": " return callback(transactionContext);", - "filename": "[[FILENAME14]]", - "function": "", - "in_app": false, - "lineno": 271, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " });", - "};", - "", - "function createChildSpanOrTransaction(", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1,", - " {" - ], - "pre_context": [ - " };", - "", - " if (!callback) {", - " return transactionContext;", - " }", - "", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 33, - "context_line": " return await core.startSpan(", - "filename": "[[FILENAME10]]", - "function": "", - "in_app": false, - "lineno": 40, - "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", - "post_context": [ - " {", - " op: 'http.server',", - " name: `${method} ${parameterizedRoute}`,", - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " }," + " disable() {", + " this._asyncLocalStorage.disable();", + " return this;" ], "pre_context": [ - " return core.continueTrace(", - " {", - " sentryTrace: _nullishCoalesce(_nullishCoalesce(sentryTraceHeader, () => ( _optionalChain([headers, 'optionalAccess', _ => _.get, {snip}", - " baggage: _nullishCoalesce(baggageHeader, () => ( _optionalChain([headers, 'optionalAccess', _3 => _3.get, 'call', _4 => _4('baggage')]))),", - " },", - " async () => {", - " try {" - ] - }, - { - "colno": 14, - "context_line": " return hub.runWithAsyncContext(() => {", - "filename": "[[FILENAME14]]", - "function": "Object.startSpan", - "in_app": false, - "lineno": 82, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " return exports$1.withScope(context.scope, scope => {", - " // eslint-disable-next-line deprecation/deprecation", - " const hub$1 = hub.getCurrentHub();", - " // eslint-disable-next-line deprecation/deprecation", - " const parentSpan = scope.getSpan();", - "", - " const shouldSkipSpan = context.onlyIfParent && !parentSpan;" - ], - "pre_context": [ - " * Note that if you have not enabled tracing extensions via `addTracingExtensions`", - " * or you didn't set `tracesSampleRate`, this function will not generate spans", - " * and the `span` returned from the callback will be undefined.", - " */", - "function startSpan(context, callback) {", - " const spanContext = normalizeContext(context);", - "" - ] - }, - { - "colno": 36, - "context_line": " return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);", - "filename": "[[FILENAME12]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 777, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " }", - "", - " // if there was no strategy, fallback to just calling the callback", - " return callback();", - "}", - "", - "/**" - ], - "pre_context": [ - " * @param options Options to pass to the async context strategy", - " * @returns The result of the callback", - " */", - "function runWithAsyncContext(callback, options = {}) {", - " const registry = getMainCarrier();", - "", - " if (registry.__SENTRY__ && registry.__SENTRY__.acs) {" - ] - }, - { - "colno": 25, - "context_line": " return asyncStorage.run(newHub, () => {", - "filename": "[[FILENAME13]]", - "function": "Object.runWithAsyncContext", - "in_app": false, - "lineno": 45, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " return callback();", - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "" - ], - "pre_context": [ - " // We're already in an async context, so we don't need to create a new one", - " // just call the callback with the current hub", - " return callback();", " }", - "", - " const newHub = createNewHub(existingHub);", - "" + " active() {", + " var _a;", + " return (_a = this._asyncLocalStorage.getStore()) !== null && _a !== void 0 ? _a : api_1.ROOT_CONTEXT;", + " }", + " with(context, fn, thisArg, ...args) {", + " const cb = thisArg == null ? fn : fn.bind(thisArg);" ] }, { "colno": 14, - "filename": "[[FILENAME7]]", + "filename": "[[FILENAME3]]", "function": "AsyncLocalStorage.run", "in_app": false, "lineno": 346, "module": "node:async_hooks" }, { - "colno": 14, - "context_line": " return callback();", - "filename": "[[FILENAME13]]", - "function": "", - "in_app": false, - "lineno": 46, - "module": "@sentry.node.cjs.async:hooks", - "post_context": [ - " });", - " }", - "", - " core.setAsyncContextStrategy({ getCurrentHub, runWithAsyncContext });", - "}", - "", - "exports.setHooksAsyncContextStrategy = setHooksAsyncContextStrategy;" - ], - "pre_context": [ - " // just call the callback with the current hub", - " return callback();", - " }", - "", - " const newHub = createNewHub(existingHub);", - "", - " return asyncStorage.run(newHub, () => {" - ] - }, - { - "colno": 22, - "context_line": " return exports$1.withScope(context.scope, scope => {", - "filename": "[[FILENAME14]]", - "function": "", + "colno": 17, + "context_line": " return core.handleCallbackErrors(", + "filename": "[[FILENAME1]]", + "function": "?", "in_app": false, - "lineno": 83, - "module": "@sentry.core.cjs.tracing:trace", + "lineno": 861, + "module": "@sentry.opentelemetry.cjs:index", "post_context": [ - " // eslint-disable-next-line deprecation/deprecation", - " const hub$1 = hub.getCurrentHub();", - " // eslint-disable-next-line deprecation/deprecation", - " const parentSpan = scope.getSpan();", - "", - " const shouldSkipSpan = context.onlyIfParent && !parentSpan;", - " const activeSpan = shouldSkipSpan" + " () => callback(span),", + " () => {", + " // Only set the span status to ERROR when there wasn't any status set before, in order to avoid stomping useful span statuses", + " if (core.spanToJSON(span).status === undefined) {", + " span.setStatus({ code: api.SpanStatusCode.ERROR });", + " }", + " }," ], "pre_context": [ - " * or you didn't set `tracesSampleRate`, this function will not generate spans", - " * and the `span` returned from the callback will be undefined.", - " */", - "function startSpan(context, callback) {", - " const spanContext = normalizeContext(context);", + " const ctx = shouldSkipSpan ? core$1.suppressTracing(activeCtx) : activeCtx;", "", - " return hub.runWithAsyncContext(() => {" - ] - }, - { - "colno": 20, - "context_line": " return hub$1.withScope(callback);", - "filename": "[[FILENAME11]]", - "function": "Object.withScope", - "in_app": false, - "lineno": 177, - "module": "@sentry.core.cjs:exports", - "post_context": [ - " }", - "", - " // eslint-disable-next-line deprecation/deprecation", - " return hub$1.withScope(() => {", - " // eslint-disable-next-line deprecation/deprecation", - " hub$1.getStackTop().scope = scope ;", - " return callback(scope );" - ], - "pre_context": [ - " const hub$1 = hub.getCurrentHub();", + " const spanContext = getSpanContext(options);", "", - " // If a scope is defined, we want to make this the active scope instead of the default one", - " if (rest.length === 2) {", - " const [scope, callback] = rest;", - " if (!scope) {", - " // eslint-disable-next-line deprecation/deprecation" - ] - }, - { - "colno": 28, - "context_line": " maybePromiseResult = callback(scope);", - "filename": "[[FILENAME12]]", - "function": "Hub.withScope", - "in_app": false, - "lineno": 194, - "module": "@sentry.core.cjs:hub", - "post_context": [ - " } catch (e) {", - " // eslint-disable-next-line deprecation/deprecation", - " this.popScope();", - " throw e;", - " }", - "", - " if (utils.isThenable(maybePromiseResult)) {" - ], - "pre_context": [ - " */", - " withScope(callback) {", - " // eslint-disable-next-line deprecation/deprecation", - " const scope = this.pushScope();", - "", - " let maybePromiseResult;", - " try {" - ] - }, - { - "colno": 35, - "context_line": " return handleCallbackErrors.handleCallbackErrors(", - "filename": "[[FILENAME14]]", - "function": "", - "in_app": false, - "lineno": 99, - "module": "@sentry.core.cjs.tracing:trace", - "post_context": [ - " () => callback(activeSpan),", - " () => {", - " // Only update the span status if it hasn't been changed yet", - " if (activeSpan) {", - " const { status } = spanUtils.spanToJSON(activeSpan);", - " if (!status || status === 'ok') {", - " activeSpan.setStatus('internal_error');" - ], - "pre_context": [ - " : createChildSpanOrTransaction(hub$1, {", - " parentSpan,", - " spanContext,", - " forceTransaction: context.forceTransaction,", - " scope,", - " });", + " return tracer.startActiveSpan(name, spanContext, ctx, span => {", + " _applySentryAttributesToSpan(span, options);", "" ] }, { "colno": 26, "context_line": " maybePromiseResult = fn();", - "filename": "[[FILENAME15]]", + "filename": "[[FILENAME4]]", "function": "Object.handleCallbackErrors", "in_app": false, "lineno": 26, @@ -1094,63 +193,63 @@ ] }, { - "colno": 15, - "context_line": " () => callback(activeSpan),", - "filename": "[[FILENAME14]]", - "function": "handleCallbackErrors.handleCallbackErrors.status.status", + "colno": 13, + "context_line": " () => callback(span),", + "filename": "[[FILENAME1]]", + "function": "?", "in_app": false, - "lineno": 100, - "module": "@sentry.core.cjs.tracing:trace", + "lineno": 862, + "module": "@sentry.opentelemetry.cjs:index", "post_context": [ - " () => {", - " // Only update the span status if it hasn't been changed yet", - " if (activeSpan) {", - " const { status } = spanUtils.spanToJSON(activeSpan);", - " if (!status || status === 'ok') {", - " activeSpan.setStatus('internal_error');", - " }" + " () => {", + " // Only set the span status to ERROR when there wasn't any status set before, in order to avoid stomping useful span statuses", + " if (core.spanToJSON(span).status === undefined) {", + " span.setStatus({ code: api.SpanStatusCode.ERROR });", + " }", + " },", + " () => span.end()," ], "pre_context": [ - " parentSpan,", - " spanContext,", - " forceTransaction: context.forceTransaction,", - " scope,", - " });", "", - " return handleCallbackErrors.handleCallbackErrors(" + " const spanContext = getSpanContext(options);", + "", + " return tracer.startActiveSpan(name, spanContext, ctx, span => {", + " _applySentryAttributesToSpan(span, options);", + "", + " return core.handleCallbackErrors(" ] }, { - "colno": 47, - "context_line": " const response = await core.handleCallbackErrors(", - "filename": "[[FILENAME10]]", - "function": "", + "colno": 45, + "context_line": " const response = await core.handleCallbackErrors(", + "filename": "[[FILENAME5]]", + "function": "?", "in_app": false, - "lineno": 50, + "lineno": 54, "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", "post_context": [ - " () => originalFunction.apply(thisArg, args),", - " error => {", - " // Next.js throws errors when calling `redirect()`. We don't wanna report these.", - " if (!nextNavigationErrorUtils.isRedirectNavigationError(error)) {", - " core.captureException(error, {", - " mechanism: {", - " handled: false," + " () => originalFunction.apply(thisArg, args),", + " error => {", + " // Next.js throws errors when calling `redirect()`. We don't wanna report these.", + " if (nextNavigationErrorUtils.isRedirectNavigationError(error)) {", + " // Don't do anything", + " } else if (nextNavigationErrorUtils.isNotFoundNavigationError(error) && span) {", + " span.setStatus({ code: core.SPAN_STATUS_ERROR, message: 'not_found' });" ], "pre_context": [ - " name: `${method} ${parameterizedRoute}`,", - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " },", + " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", + " [core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'http.server',", + " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", " },", - " async span => {" + " forceTransaction: true,", + " },", + " async span => {" ] }, { "colno": 26, "context_line": " maybePromiseResult = fn();", - "filename": "[[FILENAME15]]", + "filename": "[[FILENAME6]]", "function": "Object.handleCallbackErrors", "in_app": false, "lineno": 26, @@ -1175,39 +274,58 @@ ] }, { - "colno": 44, - "context_line": " () => originalFunction.apply(thisArg, args),", - "filename": "[[FILENAME10]]", - "function": "", + "colno": 42, + "context_line": " () => originalFunction.apply(thisArg, args),", + "filename": "[[FILENAME5]]", + "function": "?", "in_app": false, - "lineno": 51, + "lineno": 55, "module": "@sentry.nextjs.cjs.common:wrapRouteHandlerWithSentry", "post_context": [ - " error => {", - " // Next.js throws errors when calling `redirect()`. We don't wanna report these.", - " if (!nextNavigationErrorUtils.isRedirectNavigationError(error)) {", - " core.captureException(error, {", - " mechanism: {", - " handled: false,", - " }," + " error => {", + " // Next.js throws errors when calling `redirect()`. We don't wanna report these.", + " if (nextNavigationErrorUtils.isRedirectNavigationError(error)) {", + " // Don't do anything", + " } else if (nextNavigationErrorUtils.isNotFoundNavigationError(error) && span) {", + " span.setStatus({ code: core.SPAN_STATUS_ERROR, message: 'not_found' });", + " } else {" ], "pre_context": [ - " attributes: {", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',", - " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", - " },", + " [core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'http.server',", + " [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.nextjs',", " },", - " async span => {", - " const response = await core.handleCallbackErrors(" + " forceTransaction: true,", + " },", + " async span => {", + " const response = await core.handleCallbackErrors(" ] }, { - "colno": 86, - "filename": "[[FILENAME9]]", + "colno": 50, + "context_line": " const exceptionId = nextjs_.captureException(new Error(\"This is an error\"));", + "filename": "[[FILENAME7]]", "function": "GET$1", - "in_app": false, - "lineno": 23, - "module": "route.ts" + "in_app": true, + "lineno": 67, + "module": "route", + "post_context": [ + " await nextjs_.flush(2000);", + " const { pathname } = new URL(request.url);", + " const params = pathname.split(\"/\").filter(Boolean);", + " const param = params[params.length - 1];", + " return Response.json({", + " exceptionId,", + " paramWas: param" + ], + "pre_context": [ + "var request_async_storage = __webpack_require__(98840);", + ";// CONCATENATED MODULE: ./app/api/test-param-error/[param]/route.ts", + "", + "", + "", + "", + "async function GET$1(request) {" + ] } ] }, @@ -1218,45 +336,33 @@ }, "modules": { "ansi-styles": "4.3.0", - "balanced-match": "1.0.2", - "brace-expansion": "2.0.1", - "caniuse-lite": "1.0.30001610", - "commondir": "1.0.1", - "estree-walker": "2.0.2", - "fs.realpath": "1.0.0", + "debug": "4.3.4", "function-bind": "1.1.2", "has-flag": "4.0.0", "hasown": "2.0.2", - "inflight": "1.0.6", - "inherits": "2.0.4", + "import-in-the-middle": "1.7.1", "is-core-module": "2.13.1", - "is-reference": "1.2.1", - "js-tokens": "4.0.0", - "localforage": "1.10.0", - "loose-envify": "1.4.0", - "nanoid": "3.3.7", + "module-details-from-path": "1.0.3", "next": "13.2.0", - "once": "1.4.0", - "picocolors": "1.0.0", - "picomatch": "2.3.1", - "postcss": "8.4.14", - "react": "18.2.0", - "react-dom": "18.2.0", + "opentelemetry-instrumentation-fetch-node": "1.2.0", + "require-in-the-middle": "7.3.0", "resolve": "1.22.8", - "rollup": "2.78.0", - "scheduler": "0.23.0", - "source-map-js": "1.2.0", + "semver": "7.6.0", + "shimmer": "1.2.1", "stacktrace-parser": "0.1.10", "styled-jsx": "5.1.1", - "wrappy": "1.0.2" + "supports-color": "5.5.0", + "yallist": "4.0.0" }, "platform": "node", + "release": "IcVjDshBkowH13rHGKACD", "request": { "cookies": {}, "headers": { "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", + "baggage": "sentry-environment=qa,sentry-release=IcVjDshBkowH13rHGKACD,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=24dadd1955df40b8b534dcb371f365c9,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", @@ -1265,6 +371,7 @@ "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", + "sentry-trace": "24dadd1955df40b8b534dcb371f365c9-b9b84bb3f98c807f-1", "user-agent": "[[user-agent]]" }, "url": "http://localhost:3030" @@ -1276,35 +383,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.4" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.4" } ], - "version": "7.110.1" - }, - "server_name": "D9M3PY4LQ7.local", - "tags": { - "runtime": "node", - "transaction": "GET /api/test-param-error/[param]" + "version": "8.0.0-beta.4" }, + "server_name": "D9M3PY4LQ7.oekorouter.com", "timestamp": "[[timestamp]]", - "transaction": " " + "transaction": "GET /api/test-param-error/[param]" } -] +] \ No newline at end of file diff --git a/payload-files/nextjs-13_2_0/_api_test-param-error_[param]--transaction.json b/payload-files/nextjs-13_2_0/_api_test-param-error_[param]--transaction.json index 4b2147c..7b1cfb6 100644 --- a/payload-files/nextjs-13_2_0/_api_test-param-error_[param]--transaction.json +++ b/payload-files/nextjs-13_2_0/_api_test-param-error_[param]--transaction.json @@ -4,12 +4,13 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.4" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", + "release": "IcVjDshBkowH13rHGKACD", "sample_rate": "1", "sampled": "true", "trace_id": "[[ID2]]", @@ -20,76 +21,6 @@ "type": "transaction" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled client and server successfully in 255 ms (1321 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 91 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-success/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 108 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-error/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 98 ms (504 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%28sc_server%29%2F.%2Fapp%2Fapi%2Ftest-param-error%2F%5Bparam%5D%2Froute.ts&methodName=Object.apply&arguments=&lineNumber=69&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%28sc_server%29%2F.%2Fapp%2Fapi%2Ftest-param-error%2F%5Bparam%5D%2Froute.ts&methodName=GET%241&arguments=&lineNumber=23&column=86" - }, - "level": "error", - "timestamp": "[[timestamp]]", - "type": "http" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -115,13 +46,24 @@ "name": "macOS", "version": "14.2" }, + "otel": { + "resource": { + "service.name": "node", + "service.namespace": "sentry", + "service.version": "8.0.0-beta.4", + "telemetry.sdk.language": "nodejs", + "telemetry.sdk.name": "opentelemetry", + "telemetry.sdk.version": "1.24.0" + } + }, "runtime": { "name": "node", - "version": "v20.12.1" + "version": "v20.11.1" }, "trace": { "data": { "http.response.status_code": 200, + "otel.kind": "INTERNAL", "sentry.op": "http.server", "sentry.origin": "auto.function.nextjs", "sentry.sample_rate": 1, @@ -129,11 +71,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]]" } }, @@ -141,45 +81,33 @@ "event_id": "[[ID1]]", "modules": { "ansi-styles": "4.3.0", - "balanced-match": "1.0.2", - "brace-expansion": "2.0.1", - "caniuse-lite": "1.0.30001610", - "commondir": "1.0.1", - "estree-walker": "2.0.2", - "fs.realpath": "1.0.0", + "debug": "4.3.4", "function-bind": "1.1.2", "has-flag": "4.0.0", "hasown": "2.0.2", - "inflight": "1.0.6", - "inherits": "2.0.4", + "import-in-the-middle": "1.7.1", "is-core-module": "2.13.1", - "is-reference": "1.2.1", - "js-tokens": "4.0.0", - "localforage": "1.10.0", - "loose-envify": "1.4.0", - "nanoid": "3.3.7", + "module-details-from-path": "1.0.3", "next": "13.2.0", - "once": "1.4.0", - "picocolors": "1.0.0", - "picomatch": "2.3.1", - "postcss": "8.4.14", - "react": "18.2.0", - "react-dom": "18.2.0", + "opentelemetry-instrumentation-fetch-node": "1.2.0", + "require-in-the-middle": "7.3.0", "resolve": "1.22.8", - "rollup": "2.78.0", - "scheduler": "0.23.0", - "source-map-js": "1.2.0", + "semver": "7.6.0", + "shimmer": "1.2.1", "stacktrace-parser": "0.1.10", "styled-jsx": "5.1.1", - "wrappy": "1.0.2" + "supports-color": "5.5.0", + "yallist": "4.0.0" }, "platform": "node", + "release": "IcVjDshBkowH13rHGKACD", "request": { "cookies": {}, "headers": { "accept": "*/*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.5", + "baggage": "sentry-environment=qa,sentry-release=IcVjDshBkowH13rHGKACD,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=24dadd1955df40b8b534dcb371f365c9,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", @@ -188,6 +116,7 @@ "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", + "sentry-trace": "24dadd1955df40b8b534dcb371f365c9-b9b84bb3f98c807f-1", "user-agent": "[[user-agent]]" }, "url": "http://localhost:3030" @@ -199,72 +128,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.4" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.4" } ], - "version": "7.110.1" + "version": "8.0.0-beta.4" }, - "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%28sc_server%29%2F.%2Fapp%2Fapi%2Ftest-param-error%2F%5Bparam%5D%2Froute.ts&methodName=GET%241&arguments=&lineNumber=23&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%28sc_server%29%2F.%2Fapp%2Fapi%2Ftest-param-error%2F%5Bparam%5D%2Froute.ts&methodName=Object.apply&arguments=&lineNumber=69&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": "[[ID5]]", - "start_timestamp": "[[timestamp]]", - "status": "internal_error", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - } - ], + "server_name": "D9M3PY4LQ7.oekorouter.com", + "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": { @@ -272,4 +173,4 @@ }, "type": "transaction" } -] +] \ No newline at end of file diff --git a/payload-files/nextjs-13_2_0/_api_test-param-success_[param]--transaction.json b/payload-files/nextjs-13_2_0/_api_test-param-success_[param]--transaction.json index 4b3665b..d9fb76f 100644 --- a/payload-files/nextjs-13_2_0/_api_test-param-success_[param]--transaction.json +++ b/payload-files/nextjs-13_2_0/_api_test-param-success_[param]--transaction.json @@ -4,57 +4,23 @@ "event_id": "[[ID1]]", "sdk": { "name": "sentry.javascript.nextjs", - "version": "7.110.1" + "version": "8.0.0-beta.4" }, "sent_at": "[[ISODateString]]", "trace": { "environment": "qa", "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" + "release": "IcVjDshBkowH13rHGKACD", + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]", + "transaction": "GET /api/test-param-success/[param]" } }, { "type": "transaction" }, { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled client and server successfully in 255 ms (1321 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 91 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-success/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 108 ms (502 modules)", - "timestamp": "[[timestamp]]" - } - ], "contexts": { "app": { "app_memory": "[[highNumber]]", @@ -80,13 +46,24 @@ "name": "macOS", "version": "14.2" }, + "otel": { + "resource": { + "service.name": "node", + "service.namespace": "sentry", + "service.version": "8.0.0-beta.4", + "telemetry.sdk.language": "nodejs", + "telemetry.sdk.name": "opentelemetry", + "telemetry.sdk.version": "1.24.0" + } + }, "runtime": { "name": "node", - "version": "v20.12.1" + "version": "v20.11.1" }, "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 +74,6 @@ "parent_span_id": "[[ID3]]", "span_id": "[[ID4]]", "status": "ok", - "tags": { - "http.status_code": "200" - }, "trace_id": "[[ID2]]" } }, @@ -107,46 +81,33 @@ "event_id": "[[ID1]]", "modules": { "ansi-styles": "4.3.0", - "balanced-match": "1.0.2", - "brace-expansion": "2.0.1", - "caniuse-lite": "1.0.30001610", - "commondir": "1.0.1", - "estree-walker": "2.0.2", - "fs.realpath": "1.0.0", + "debug": "4.3.4", "function-bind": "1.1.2", "has-flag": "4.0.0", "hasown": "2.0.2", - "inflight": "1.0.6", - "inherits": "2.0.4", + "import-in-the-middle": "1.7.1", "is-core-module": "2.13.1", - "is-reference": "1.2.1", - "js-tokens": "4.0.0", - "localforage": "1.10.0", - "loose-envify": "1.4.0", - "nanoid": "3.3.7", + "module-details-from-path": "1.0.3", "next": "13.2.0", - "once": "1.4.0", - "picocolors": "1.0.0", - "picomatch": "2.3.1", - "postcss": "8.4.14", - "react": "18.2.0", - "react-dom": "18.2.0", + "opentelemetry-instrumentation-fetch-node": "1.2.0", + "require-in-the-middle": "7.3.0", "resolve": "1.22.8", - "rollup": "2.78.0", - "scheduler": "0.23.0", - "source-map-js": "1.2.0", + "semver": "7.6.0", + "shimmer": "1.2.1", "stacktrace-parser": "0.1.10", "styled-jsx": "5.1.1", - "wrappy": "1.0.2" + "supports-color": "5.5.0", + "yallist": "4.0.0" }, "platform": "node", + "release": "IcVjDshBkowH13rHGKACD", "request": { "cookies": {}, "headers": { "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=1e639b3a12f042eb99339c3baac20ffa", + "baggage": "sentry-environment=qa,sentry-release=IcVjDshBkowH13rHGKACD,sentry-public_key=3b6c388182fb435097f41d181be2b2ba,sentry-trace_id=24dadd1955df40b8b534dcb371f365c9,sentry-sample_rate=1,sentry-sampled=true", "cache-control": "no-cache", "connection": "keep-alive", "host": "localhost:3030", @@ -155,7 +116,7 @@ "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", - "sentry-trace": "1e639b3a12f042eb99339c3baac20ffa-84813d02de47733d", + "sentry-trace": "24dadd1955df40b8b534dcb371f365c9-b9b84bb3f98c807f-1", "user-agent": "[[user-agent]]" }, "url": "http://localhost:3030" @@ -167,37 +128,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.4" }, { "name": "npm:@sentry/node", - "version": "7.110.1" + "version": "8.0.0-beta.4" } ], - "version": "7.110.1" + "version": "8.0.0-beta.4" }, - "server_name": "D9M3PY4LQ7.local", + "server_name": "D9M3PY4LQ7.oekorouter.com", "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": { @@ -205,4 +173,4 @@ }, "type": "transaction" } -] +] \ No newline at end of file diff --git a/payload-files/nextjs-13_2_0/_api_test-success--transaction.json b/payload-files/nextjs-13_2_0/_api_test-success--transaction.json deleted file mode 100644 index 1b0bdf3..0000000 --- a/payload-files/nextjs-13_2_0/_api_test-success--transaction.json +++ /dev/null @@ -1,184 +0,0 @@ -[ - { - "dsn": "[[dsn]]", - "event_id": "[[ID1]]", - "sdk": { - "name": "sentry.javascript.nextjs", - "version": "7.110.1" - }, - "sent_at": "[[ISODateString]]", - "trace": { - "environment": "qa", - "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" - } - }, - { - "type": "transaction" - }, - { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled client and server successfully in 255 ms (1321 modules)", - "timestamp": "[[timestamp]]" - } - ], - "contexts": { - "app": { - "app_memory": "[[highNumber]]", - "app_start_time": "[[ISODateString]]" - }, - "cloud_resource": {}, - "culture": { - "locale": "en-US", - "timezone": "Europe/Vienna" - }, - "device": { - "arch": "arm64", - "boot_time": "[[ISODateString]]", - "cpu_description": "Apple M1 Pro", - "free_memory": "[[highNumber]]", - "memory_size": "[[highNumber]]", - "processor_count": 10, - "processor_frequency": "[[highNumber]]" - }, - "os": { - "build": "23C64", - "kernel_version": "23.2.0", - "name": "macOS", - "version": "14.2" - }, - "runtime": { - "name": "node", - "version": "v20.12.1" - }, - "trace": { - "data": { - "http.response.status_code": 200, - "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]]", - "status": "ok", - "tags": { - "http.status_code": "200" - }, - "trace_id": "[[ID2]]" - } - }, - "environment": "qa", - "event_id": "[[ID1]]", - "modules": { - "ansi-styles": "4.3.0", - "balanced-match": "1.0.2", - "brace-expansion": "2.0.1", - "caniuse-lite": "1.0.30001610", - "commondir": "1.0.1", - "estree-walker": "2.0.2", - "fs.realpath": "1.0.0", - "function-bind": "1.1.2", - "has-flag": "4.0.0", - "hasown": "2.0.2", - "inflight": "1.0.6", - "inherits": "2.0.4", - "is-core-module": "2.13.1", - "is-reference": "1.2.1", - "js-tokens": "4.0.0", - "localforage": "1.10.0", - "loose-envify": "1.4.0", - "nanoid": "3.3.7", - "next": "13.2.0", - "once": "1.4.0", - "picocolors": "1.0.0", - "picomatch": "2.3.1", - "postcss": "8.4.14", - "react": "18.2.0", - "react-dom": "18.2.0", - "resolve": "1.22.8", - "rollup": "2.78.0", - "scheduler": "0.23.0", - "source-map-js": "1.2.0", - "stacktrace-parser": "0.1.10", - "styled-jsx": "5.1.1", - "wrappy": "1.0.2" - }, - "platform": "node", - "request": { - "cookies": {}, - "headers": { - "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=1e639b3a12f042eb99339c3baac20ffa", - "cache-control": "no-cache", - "connection": "keep-alive", - "host": "localhost:3030", - "pragma": "no-cache", - "referer": "http://localhost:3030/test-route-handlers", - "sec-fetch-dest": "empty", - "sec-fetch-mode": "cors", - "sec-fetch-site": "same-origin", - "sentry-trace": "1e639b3a12f042eb99339c3baac20ffa-84813d02de47733d", - "user-agent": "[[user-agent]]" - }, - "url": "http://localhost:3030" - }, - "sdk": { - "integrations": [ - "InboundFilters", - "FunctionToString", - "LinkedErrors", - "RequestData", - "Console", - "Undici", - "OnUnhandledRejection", - "ContextLines", - "LocalVariables", - "Context", - "Modules", - "RewriteFrames", - "Http", - "OnUncaughtException" - ], - "name": "sentry.javascript.nextjs", - "packages": [ - { - "name": "npm:@sentry/nextjs", - "version": "7.110.1" - }, - { - "name": "npm:@sentry/node", - "version": "7.110.1" - } - ], - "version": "7.110.1" - }, - "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": { - "source": "route" - }, - "type": "transaction" - } -] diff --git a/payload-files/nextjs-13_2_0/_api_test-success-manual--transaction.json b/payload-files/nextjs-13_2_0/_api_test-success-manual--transaction.json deleted file mode 100644 index a2b6427..0000000 --- a/payload-files/nextjs-13_2_0/_api_test-success-manual--transaction.json +++ /dev/null @@ -1,257 +0,0 @@ -[ - { - "dsn": "[[dsn]]", - "event_id": "[[ID1]]", - "sdk": { - "name": "sentry.javascript.nextjs", - "version": "7.110.1" - }, - "sent_at": "[[ISODateString]]", - "trace": { - "environment": "qa", - "public_key": "[[publicKey]]", - "trace_id": "[[ID2]]" - } - }, - { - "type": "transaction" - }, - { - "breadcrumbs": [ - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled client and server successfully in 255 ms (1321 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-error/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 91 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-success/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 108 ms (502 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-param-error/[param]/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 98 ms (504 modules)", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[36mwait\u001b[39m - compiling /api/test-success-manual/route (client and server)...", - "timestamp": "[[timestamp]]" - }, - { - "category": "console", - "level": "log", - "message": "\u001b[35mevent\u001b[39m - compiled successfully in 96 ms (506 modules)", - "timestamp": "[[timestamp]]" - } - ], - "contexts": { - "app": { - "app_memory": "[[highNumber]]", - "app_start_time": "[[ISODateString]]" - }, - "cloud_resource": {}, - "culture": { - "locale": "en-US", - "timezone": "Europe/Vienna" - }, - "device": { - "arch": "arm64", - "boot_time": "[[ISODateString]]", - "cpu_description": "Apple M1 Pro", - "free_memory": "[[highNumber]]", - "memory_size": "[[highNumber]]", - "processor_count": 10, - "processor_frequency": "[[highNumber]]" - }, - "os": { - "build": "23C64", - "kernel_version": "23.2.0", - "name": "macOS", - "version": "14.2" - }, - "runtime": { - "name": "node", - "version": "v20.12.1" - }, - "trace": { - "data": { - "http.response.status_code": 200, - "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]]", - "status": "ok", - "tags": { - "http.status_code": "200" - }, - "trace_id": "[[ID2]]" - } - }, - "environment": "qa", - "event_id": "[[ID1]]", - "modules": { - "ansi-styles": "4.3.0", - "balanced-match": "1.0.2", - "brace-expansion": "2.0.1", - "caniuse-lite": "1.0.30001610", - "commondir": "1.0.1", - "estree-walker": "2.0.2", - "fs.realpath": "1.0.0", - "function-bind": "1.1.2", - "has-flag": "4.0.0", - "hasown": "2.0.2", - "inflight": "1.0.6", - "inherits": "2.0.4", - "is-core-module": "2.13.1", - "is-reference": "1.2.1", - "js-tokens": "4.0.0", - "localforage": "1.10.0", - "loose-envify": "1.4.0", - "nanoid": "3.3.7", - "next": "13.2.0", - "once": "1.4.0", - "picocolors": "1.0.0", - "picomatch": "2.3.1", - "postcss": "8.4.14", - "react": "18.2.0", - "react-dom": "18.2.0", - "resolve": "1.22.8", - "rollup": "2.78.0", - "scheduler": "0.23.0", - "source-map-js": "1.2.0", - "stacktrace-parser": "0.1.10", - "styled-jsx": "5.1.1", - "wrappy": "1.0.2" - }, - "platform": "node", - "request": { - "cookies": {}, - "headers": { - "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=1e639b3a12f042eb99339c3baac20ffa", - "cache-control": "no-cache", - "connection": "keep-alive", - "host": "localhost:3030", - "pragma": "no-cache", - "referer": "http://localhost:3030/test-route-handlers", - "sec-fetch-dest": "empty", - "sec-fetch-mode": "cors", - "sec-fetch-site": "same-origin", - "sentry-trace": "1e639b3a12f042eb99339c3baac20ffa-84813d02de47733d", - "user-agent": "[[user-agent]]" - }, - "url": "http://localhost:3030" - }, - "sdk": { - "integrations": [ - "InboundFilters", - "FunctionToString", - "LinkedErrors", - "RequestData", - "Console", - "Undici", - "OnUnhandledRejection", - "ContextLines", - "LocalVariables", - "Context", - "Modules", - "RewriteFrames", - "Http", - "OnUncaughtException" - ], - "name": "sentry.javascript.nextjs", - "packages": [ - { - "name": "npm:@sentry/nextjs", - "version": "7.110.1" - }, - { - "name": "npm:@sentry/node", - "version": "7.110.1" - } - ], - "version": "7.110.1" - }, - "server_name": "D9M3PY4LQ7.local", - "spans": [ - { - "data": { - "sentry.origin": "manual" - }, - "description": "test-span", - "origin": "manual", - "parent_span_id": "[[ID4]]", - "span_id": "[[ID5]]", - "start_timestamp": "[[timestamp]]", - "timestamp": "[[timestamp]]", - "trace_id": "[[ID2]]" - }, - { - "data": { - "sentry.origin": "manual" - }, - "description": "child-span", - "origin": "manual", - "parent_span_id": "[[ID5]]", - "span_id": "[[ID6]]", - "start_timestamp": "[[timestamp]]", - "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": { - "source": "route" - }, - "type": "transaction" - } -] diff --git a/payload-files/nextjs-13_2_0/_test-route-handlers--transaction.json b/payload-files/nextjs-13_2_0/_test-route-handlers--transaction.json new file mode 100644 index 0000000..f6d8bf2 --- /dev/null +++ b/payload-files/nextjs-13_2_0/_test-route-handlers--transaction.json @@ -0,0 +1,371 @@ +[ + { + "dsn": "[[dsn]]", + "event_id": "[[ID1]]", + "sdk": { + "name": "sentry.javascript.nextjs", + "version": "8.0.0-beta.4" + }, + "sent_at": "[[ISODateString]]", + "trace": { + "environment": "qa", + "public_key": "[[publicKey]]", + "release": "IcVjDshBkowH13rHGKACD", + "sample_rate": "1", + "sampled": "true", + "trace_id": "[[ID2]]" + } + }, + { + "type": "transaction" + }, + { + "breadcrumbs": [ + { + "category": "navigation", + "data": { + "from": "/test-route-handlers", + "to": "/test-route-handlers" + }, + "timestamp": "[[timestamp]]" + } + ], + "contexts": { + "trace": { + "data": { + "hardwareConcurrency": "10", + "sentry.op": "pageload", + "sentry.origin": "auto.pageload.nextjs.app_router_instrumentation", + "sentry.sample_rate": 1, + "sentry.source": "url" + }, + "op": "pageload", + "origin": "auto.pageload.nextjs.app_router_instrumentation", + "span_id": "[[ID3]]", + "trace_id": "[[ID2]]" + } + }, + "environment": "qa", + "event_id": "[[ID1]]", + "measurements": { + "fcp": { + "unit": "millisecond", + "value": 159 + }, + "ttfb": { + "unit": "millisecond", + "value": 137 + }, + "ttfb.requestTime": { + "unit": "millisecond", + "value": 118 + } + }, + "platform": "javascript", + "release": "IcVjDshBkowH13rHGKACD", + "request": { + "headers": { + "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:125.0) Gecko/20100101 Firefox/125.0" + }, + "url": "http://localhost:3030/test-route-handlers" + }, + "sdk": { + "integrations": [ + "InboundFilters", + "FunctionToString", + "BrowserApiErrors", + "Breadcrumbs", + "GlobalHandlers", + "LinkedErrors", + "Dedupe", + "HttpContext", + "BrowserTracing", + "NextjsClientStackFrameNormalization" + ], + "name": "sentry.javascript.nextjs", + "packages": [ + { + "name": "npm:@sentry/nextjs", + "version": "8.0.0-beta.4" + }, + { + "name": "npm:@sentry/react", + "version": "8.0.0-beta.4" + } + ], + "version": "8.0.0-beta.4" + }, + "spans": [ + { + "data": { + "sentry.op": "browser", + "sentry.origin": "auto.ui.browser.metrics" + }, + "description": "unloadEvent", + "op": "browser", + "origin": "auto.ui.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID4]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "sentry.op": "browser", + "sentry.origin": "auto.ui.browser.metrics" + }, + "description": "domContentLoadedEvent", + "op": "browser", + "origin": "auto.ui.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID5]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "sentry.op": "browser", + "sentry.origin": "auto.ui.browser.metrics" + }, + "description": "loadEvent", + "op": "browser", + "origin": "auto.ui.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID6]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "sentry.op": "browser", + "sentry.origin": "auto.ui.browser.metrics" + }, + "description": "connect", + "op": "browser", + "origin": "auto.ui.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID7]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "sentry.op": "browser", + "sentry.origin": "auto.ui.browser.metrics" + }, + "description": "cache", + "op": "browser", + "origin": "auto.ui.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID8]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "sentry.op": "browser", + "sentry.origin": "auto.ui.browser.metrics" + }, + "description": "DNS", + "op": "browser", + "origin": "auto.ui.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID9]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "sentry.op": "browser", + "sentry.origin": "auto.ui.browser.metrics" + }, + "description": "request", + "op": "browser", + "origin": "auto.ui.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID10]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "sentry.op": "browser", + "sentry.origin": "auto.ui.browser.metrics" + }, + "description": "response", + "op": "browser", + "origin": "auto.ui.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID11]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "http.decoded_response_content_length": 124, + "http.response_content_length": 124, + "http.response_transfer_size": 456, + "sentry.op": "resource.link", + "sentry.origin": "auto.resource.browser.metrics", + "server.address": "localhost:3030", + "url.same_origin": true, + "url.scheme": "http" + }, + "description": "/_next/static/css/a16ece022db5362c.css", + "op": "resource.link", + "origin": "auto.resource.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID12]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "http.decoded_response_content_length": "[[highNumber]]", + "http.response_content_length": "[[highNumber]]", + "http.response_transfer_size": "[[highNumber]]", + "sentry.op": "resource.script", + "sentry.origin": "auto.resource.browser.metrics", + "server.address": "localhost:3030", + "url.same_origin": true, + "url.scheme": "http" + }, + "description": "/_next/static/chunks/webpack-3f5996361e70b3cc.js", + "op": "resource.script", + "origin": "auto.resource.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID13]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "http.decoded_response_content_length": "[[highNumber]]", + "http.response_content_length": 643, + "http.response_transfer_size": "[[highNumber]]", + "sentry.op": "resource.script", + "sentry.origin": "auto.resource.browser.metrics", + "server.address": "localhost:3030", + "url.same_origin": true, + "url.scheme": "http" + }, + "description": "/_next/static/chunks/main-app-e1a1ef0c4094db6c.js", + "op": "resource.script", + "origin": "auto.resource.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID14]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "http.decoded_response_content_length": "[[highNumber]]", + "http.response_content_length": "[[highNumber]]", + "http.response_transfer_size": "[[highNumber]]", + "sentry.op": "resource.script", + "sentry.origin": "auto.resource.browser.metrics", + "server.address": "localhost:3030", + "url.same_origin": true, + "url.scheme": "http" + }, + "description": "/_next/static/chunks/590-1caa6e5f425da7bf.js", + "op": "resource.script", + "origin": "auto.resource.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID15]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "http.decoded_response_content_length": "[[highNumber]]", + "http.response_content_length": "[[highNumber]]", + "http.response_transfer_size": "[[highNumber]]", + "sentry.op": "resource.other", + "sentry.origin": "auto.resource.browser.metrics", + "server.address": "localhost:3030", + "url.same_origin": true, + "url.scheme": "http" + }, + "description": "/favicon.ico", + "op": "resource.other", + "origin": "auto.resource.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID16]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "sentry.op": "paint", + "sentry.origin": "auto.resource.browser.metrics" + }, + "description": "first-contentful-paint", + "op": "paint", + "origin": "auto.resource.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID17]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "sentry.op": "mark", + "sentry.origin": "auto.resource.browser.metrics" + }, + "description": "sentry-tracing-init", + "op": "mark", + "origin": "auto.resource.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID18]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + }, + { + "data": { + "http.decoded_response_content_length": "[[highNumber]]", + "http.response_content_length": "[[highNumber]]", + "http.response_transfer_size": "[[highNumber]]", + "sentry.op": "resource.script", + "sentry.origin": "auto.resource.browser.metrics", + "server.address": "localhost:3030", + "url.same_origin": true, + "url.scheme": "http" + }, + "description": "/_next/static/chunks/app/test-route-handlers/page-ae4da5788602529e.js", + "op": "resource.script", + "origin": "auto.resource.browser.metrics", + "parent_span_id": "[[ID3]]", + "span_id": "[[ID19]]", + "start_timestamp": "[[timestamp]]", + "timestamp": "[[timestamp]]", + "trace_id": "[[ID2]]" + } + ], + "start_timestamp": "[[timestamp]]", + "tags": { + "runtime": "browser" + }, + "timestamp": "[[timestamp]]", + "transaction": "/test-route-handlers", + "transaction_info": { + "source": "url" + }, + "type": "transaction" + } +] \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 8ee58f6..f7c60d5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12,6 +12,16 @@ __metadata: languageName: node linkType: hard +"@ampproject/remapping@npm:^2.2.0": + version: 2.3.0 + resolution: "@ampproject/remapping@npm:2.3.0" + dependencies: + "@jridgewell/gen-mapping": "npm:^0.3.5" + "@jridgewell/trace-mapping": "npm:^0.3.24" + checksum: 10c0/81d63cca5443e0f0c72ae18b544cc28c7c0ec2cea46e7cb888bb0e0f411a1191d0d6b7af798d54e30777d8d1488b2ec0732aac2be342d3d7d3ffd271c6f489ed + languageName: node + linkType: hard + "@angular-devkit/core@npm:17.1.2": version: 17.1.2 resolution: "@angular-devkit/core@npm:17.1.2" @@ -60,7 +70,7 @@ __metadata: languageName: node linkType: hard -"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.16.7": +"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.16.7, @babel/code-frame@npm:^7.23.5, @babel/code-frame@npm:^7.24.1, @babel/code-frame@npm:^7.24.2": version: 7.24.2 resolution: "@babel/code-frame@npm:7.24.2" dependencies: @@ -70,6 +80,136 @@ __metadata: languageName: node linkType: hard +"@babel/compat-data@npm:^7.23.5": + version: 7.24.4 + resolution: "@babel/compat-data@npm:7.24.4" + checksum: 10c0/9cd8a9cd28a5ca6db5d0e27417d609f95a8762b655e8c9c97fd2de08997043ae99f0139007083c5e607601c6122e8432c85fe391731b19bf26ad458fa0c60dd3 + languageName: node + linkType: hard + +"@babel/core@npm:^7.18.5": + version: 7.24.4 + resolution: "@babel/core@npm:7.24.4" + dependencies: + "@ampproject/remapping": "npm:^2.2.0" + "@babel/code-frame": "npm:^7.24.2" + "@babel/generator": "npm:^7.24.4" + "@babel/helper-compilation-targets": "npm:^7.23.6" + "@babel/helper-module-transforms": "npm:^7.23.3" + "@babel/helpers": "npm:^7.24.4" + "@babel/parser": "npm:^7.24.4" + "@babel/template": "npm:^7.24.0" + "@babel/traverse": "npm:^7.24.1" + "@babel/types": "npm:^7.24.0" + convert-source-map: "npm:^2.0.0" + debug: "npm:^4.1.0" + gensync: "npm:^1.0.0-beta.2" + json5: "npm:^2.2.3" + semver: "npm:^6.3.1" + checksum: 10c0/fc136966583e64d6f84f4a676368de6ab4583aa87f867186068655b30ef67f21f8e65a88c6d446a7efd219ad7ffb9185c82e8a90183ee033f6f47b5026641e16 + languageName: node + linkType: hard + +"@babel/generator@npm:^7.24.1, @babel/generator@npm:^7.24.4": + version: 7.24.4 + resolution: "@babel/generator@npm:7.24.4" + dependencies: + "@babel/types": "npm:^7.24.0" + "@jridgewell/gen-mapping": "npm:^0.3.5" + "@jridgewell/trace-mapping": "npm:^0.3.25" + jsesc: "npm:^2.5.1" + checksum: 10c0/67a1b2f7cc985aaaa11b01e8ddd4fffa4f285837bc7a209738eb8203aa34bdafeb8507ed75fd883ddbabd641a036ca0a8d984e760f28ad4a9d60bff29d0a60bb + languageName: node + linkType: hard + +"@babel/helper-compilation-targets@npm:^7.23.6": + version: 7.23.6 + resolution: "@babel/helper-compilation-targets@npm:7.23.6" + dependencies: + "@babel/compat-data": "npm:^7.23.5" + "@babel/helper-validator-option": "npm:^7.23.5" + browserslist: "npm:^4.22.2" + lru-cache: "npm:^5.1.1" + semver: "npm:^6.3.1" + checksum: 10c0/ba38506d11185f48b79abf439462ece271d3eead1673dd8814519c8c903c708523428806f05f2ec5efd0c56e4e278698fac967e5a4b5ee842c32415da54bc6fa + languageName: node + linkType: hard + +"@babel/helper-environment-visitor@npm:^7.22.20": + version: 7.22.20 + resolution: "@babel/helper-environment-visitor@npm:7.22.20" + checksum: 10c0/e762c2d8f5d423af89bd7ae9abe35bd4836d2eb401af868a63bbb63220c513c783e25ef001019418560b3fdc6d9a6fb67e6c0b650bcdeb3a2ac44b5c3d2bdd94 + languageName: node + linkType: hard + +"@babel/helper-function-name@npm:^7.23.0": + version: 7.23.0 + resolution: "@babel/helper-function-name@npm:7.23.0" + dependencies: + "@babel/template": "npm:^7.22.15" + "@babel/types": "npm:^7.23.0" + checksum: 10c0/d771dd1f3222b120518176733c52b7cadac1c256ff49b1889dbbe5e3fed81db855b8cc4e40d949c9d3eae0e795e8229c1c8c24c0e83f27cfa6ee3766696c6428 + languageName: node + linkType: hard + +"@babel/helper-hoist-variables@npm:^7.22.5": + version: 7.22.5 + resolution: "@babel/helper-hoist-variables@npm:7.22.5" + dependencies: + "@babel/types": "npm:^7.22.5" + checksum: 10c0/60a3077f756a1cd9f14eb89f0037f487d81ede2b7cfe652ea6869cd4ec4c782b0fb1de01b8494b9a2d2050e3d154d7d5ad3be24806790acfb8cbe2073bf1e208 + languageName: node + linkType: hard + +"@babel/helper-module-imports@npm:^7.22.15": + version: 7.24.3 + resolution: "@babel/helper-module-imports@npm:7.24.3" + dependencies: + "@babel/types": "npm:^7.24.0" + checksum: 10c0/052c188adcd100f5e8b6ff0c9643ddaabc58b6700d3bbbc26804141ad68375a9f97d9d173658d373d31853019e65f62610239e3295cdd58e573bdcb2fded188d + languageName: node + linkType: hard + +"@babel/helper-module-transforms@npm:^7.23.3": + version: 7.23.3 + resolution: "@babel/helper-module-transforms@npm:7.23.3" + dependencies: + "@babel/helper-environment-visitor": "npm:^7.22.20" + "@babel/helper-module-imports": "npm:^7.22.15" + "@babel/helper-simple-access": "npm:^7.22.5" + "@babel/helper-split-export-declaration": "npm:^7.22.6" + "@babel/helper-validator-identifier": "npm:^7.22.20" + peerDependencies: + "@babel/core": ^7.0.0 + checksum: 10c0/211e1399d0c4993671e8e5c2b25383f08bee40004ace5404ed4065f0e9258cc85d99c1b82fd456c030ce5cfd4d8f310355b54ef35de9924eabfc3dff1331d946 + languageName: node + linkType: hard + +"@babel/helper-simple-access@npm:^7.22.5": + version: 7.22.5 + resolution: "@babel/helper-simple-access@npm:7.22.5" + dependencies: + "@babel/types": "npm:^7.22.5" + checksum: 10c0/f0cf81a30ba3d09a625fd50e5a9069e575c5b6719234e04ee74247057f8104beca89ed03e9217b6e9b0493434cedc18c5ecca4cea6244990836f1f893e140369 + languageName: node + linkType: hard + +"@babel/helper-split-export-declaration@npm:^7.22.6": + version: 7.22.6 + resolution: "@babel/helper-split-export-declaration@npm:7.22.6" + dependencies: + "@babel/types": "npm:^7.22.5" + checksum: 10c0/d83e4b623eaa9622c267d3c83583b72f3aac567dc393dda18e559d79187961cb29ae9c57b2664137fc3d19508370b12ec6a81d28af73a50e0846819cb21c6e44 + languageName: node + linkType: hard + +"@babel/helper-string-parser@npm:^7.23.4": + version: 7.24.1 + resolution: "@babel/helper-string-parser@npm:7.24.1" + checksum: 10c0/2f9bfcf8d2f9f083785df0501dbab92770111ece2f90d120352fda6dd2a7d47db11b807d111e6f32aa1ba6d763fe2dc6603d153068d672a5d0ad33ca802632b2 + languageName: node + linkType: hard + "@babel/helper-validator-identifier@npm:^7.22.20": version: 7.22.20 resolution: "@babel/helper-validator-identifier@npm:7.22.20" @@ -77,6 +217,24 @@ __metadata: languageName: node linkType: hard +"@babel/helper-validator-option@npm:^7.23.5": + version: 7.23.5 + resolution: "@babel/helper-validator-option@npm:7.23.5" + checksum: 10c0/af45d5c0defb292ba6fd38979e8f13d7da63f9623d8ab9ededc394f67eb45857d2601278d151ae9affb6e03d5d608485806cd45af08b4468a0515cf506510e94 + languageName: node + linkType: hard + +"@babel/helpers@npm:^7.24.4": + version: 7.24.4 + resolution: "@babel/helpers@npm:7.24.4" + dependencies: + "@babel/template": "npm:^7.24.0" + "@babel/traverse": "npm:^7.24.1" + "@babel/types": "npm:^7.24.0" + checksum: 10c0/747ef62b7fe87de31a2f3c19ff337a86cbb79be2f6c18af63133b614ab5a8f6da5b06ae4b06fb0e71271cb6a27efec6f8b6c9f44c60b8a18777832dc7929e6c5 + languageName: node + linkType: hard + "@babel/highlight@npm:^7.24.2": version: 7.24.2 resolution: "@babel/highlight@npm:7.24.2" @@ -89,6 +247,55 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:^7.24.0, @babel/parser@npm:^7.24.1, @babel/parser@npm:^7.24.4": + version: 7.24.4 + resolution: "@babel/parser@npm:7.24.4" + bin: + parser: ./bin/babel-parser.js + checksum: 10c0/8381e1efead5069cb7ed2abc3a583f4a86289b2f376c75cecc69f59a8eb36df18274b1886cecf2f97a6a0dff5334b27330f58535be9b3e4e26102cc50e12eac8 + languageName: node + linkType: hard + +"@babel/template@npm:^7.22.15, @babel/template@npm:^7.24.0": + version: 7.24.0 + resolution: "@babel/template@npm:7.24.0" + dependencies: + "@babel/code-frame": "npm:^7.23.5" + "@babel/parser": "npm:^7.24.0" + "@babel/types": "npm:^7.24.0" + checksum: 10c0/9d3dd8d22fe1c36bc3bdef6118af1f4b030aaf6d7d2619f5da203efa818a2185d717523486c111de8d99a8649ddf4bbf6b2a7a64962d8411cf6a8fa89f010e54 + languageName: node + linkType: hard + +"@babel/traverse@npm:^7.24.1": + version: 7.24.1 + resolution: "@babel/traverse@npm:7.24.1" + dependencies: + "@babel/code-frame": "npm:^7.24.1" + "@babel/generator": "npm:^7.24.1" + "@babel/helper-environment-visitor": "npm:^7.22.20" + "@babel/helper-function-name": "npm:^7.23.0" + "@babel/helper-hoist-variables": "npm:^7.22.5" + "@babel/helper-split-export-declaration": "npm:^7.22.6" + "@babel/parser": "npm:^7.24.1" + "@babel/types": "npm:^7.24.0" + debug: "npm:^4.3.1" + globals: "npm:^11.1.0" + checksum: 10c0/c087b918f6823776537ba246136c70e7ce0719fc05361ebcbfd16f4e6f2f6f1f8f4f9167f1d9b675f27d12074839605189cc9d689de20b89a85e7c140f23daab + languageName: node + linkType: hard + +"@babel/types@npm:^7.22.5, @babel/types@npm:^7.23.0, @babel/types@npm:^7.24.0, @babel/types@npm:^7.8.3": + version: 7.24.0 + resolution: "@babel/types@npm:7.24.0" + dependencies: + "@babel/helper-string-parser": "npm:^7.23.4" + "@babel/helper-validator-identifier": "npm:^7.22.20" + to-fast-properties: "npm:^2.0.0" + checksum: 10c0/777a0bb5dbe038ca4c905fdafb1cdb6bdd10fe9d63ce13eca0bd91909363cbad554a53dc1f902004b78c1dcbc742056f877f2c99eeedff647333b1fadf51235d + languageName: node + linkType: hard + "@colors/colors@npm:1.5.0": version: 1.5.0 resolution: "@colors/colors@npm:1.5.0" @@ -201,6 +408,97 @@ __metadata: languageName: node linkType: hard +"@hapi/b64@npm:5.x.x": + version: 5.0.0 + resolution: "@hapi/b64@npm:5.0.0" + dependencies: + "@hapi/hoek": "npm:9.x.x" + checksum: 10c0/01389a2de70a3d48252f71786ee6b9487d571f999a46ea80b3481f84af66974e551e751286c85612d570ef714b35c07f9b71f765a05816584062f2726ad69ad8 + languageName: node + linkType: hard + +"@hapi/boom@npm:9.x.x, @hapi/boom@npm:^9.0.0": + version: 9.1.4 + resolution: "@hapi/boom@npm:9.1.4" + dependencies: + "@hapi/hoek": "npm:9.x.x" + checksum: 10c0/49bb99443e7bdbbdc87ee8de97cd64351e173b57d7c59061c69972d2de77fb98f2f440c1be42b37e1ac04f57c60fbb79f8fd3e9e5695360add560c37e2d584db + languageName: node + linkType: hard + +"@hapi/bourne@npm:2.x.x": + version: 2.1.0 + resolution: "@hapi/bourne@npm:2.1.0" + checksum: 10c0/0dddacffeb1874d60dd9309f2d8f7103d971c21c4bfb0cfadb406f1dcc0bc00c0b5eed09fbd45a27fe179b6c9f99015500c2197213914d6f93efa584b9313ffd + languageName: node + linkType: hard + +"@hapi/cryptiles@npm:5.x.x": + version: 5.1.0 + resolution: "@hapi/cryptiles@npm:5.1.0" + dependencies: + "@hapi/boom": "npm:9.x.x" + checksum: 10c0/844b337d94febcd0b40990fcdbcb12bf06f19afc3c3a555a1f73d586250c5227f3a3368ac9a445f53d6bdef7acf0267376087280dfc6917387012d61b307f8b7 + languageName: node + linkType: hard + +"@hapi/hoek@npm:9.x.x, @hapi/hoek@npm:^9.0.0, @hapi/hoek@npm:^9.3.0": + version: 9.3.0 + resolution: "@hapi/hoek@npm:9.3.0" + checksum: 10c0/a096063805051fb8bba4c947e293c664b05a32b47e13bc654c0dd43813a1cec993bdd8f29ceb838020299e1d0f89f68dc0d62a603c13c9cc8541963f0beca055 + languageName: node + linkType: hard + +"@hapi/iron@npm:^6.0.0": + version: 6.0.0 + resolution: "@hapi/iron@npm:6.0.0" + dependencies: + "@hapi/b64": "npm:5.x.x" + "@hapi/boom": "npm:9.x.x" + "@hapi/bourne": "npm:2.x.x" + "@hapi/cryptiles": "npm:5.x.x" + "@hapi/hoek": "npm:9.x.x" + checksum: 10c0/81678335c546165440b7214d5275fa58313ff81b4e928ef7862dfe14b2f03269db64a7c8d251e277683d007c8413a921db82c9d46c394159afa625d919c9d3cb + languageName: node + linkType: hard + +"@hapi/podium@npm:^4.1.3": + version: 4.1.3 + resolution: "@hapi/podium@npm:4.1.3" + dependencies: + "@hapi/hoek": "npm:9.x.x" + "@hapi/teamwork": "npm:5.x.x" + "@hapi/validate": "npm:1.x.x" + checksum: 10c0/483b999707d5214291ef2c51d5313dfe5d48968411369fc52258f07e230836c070fdd5402a6d85ed667de9e72806bb45c052e17b57dff07543b40b0b7e72bed0 + languageName: node + linkType: hard + +"@hapi/teamwork@npm:5.x.x": + version: 5.1.1 + resolution: "@hapi/teamwork@npm:5.1.1" + checksum: 10c0/8174a4693a00cb82474d75b0296b345b7e1c020dc440a5dc21f4f5a091306068553faab70dc6cf642ac36f49e20ee1e1aed6a81f99ffca5b1a42633d0fa437bb + languageName: node + linkType: hard + +"@hapi/topo@npm:^5.0.0, @hapi/topo@npm:^5.1.0": + version: 5.1.0 + resolution: "@hapi/topo@npm:5.1.0" + dependencies: + "@hapi/hoek": "npm:^9.0.0" + checksum: 10c0/b16b06d9357947149e032bdf10151eb71aea8057c79c4046bf32393cb89d0d0f7ca501c40c0f7534a5ceca078de0700d2257ac855c15e59fe4e00bba2f25c86f + languageName: node + linkType: hard + +"@hapi/validate@npm:1.x.x": + version: 1.1.3 + resolution: "@hapi/validate@npm:1.1.3" + dependencies: + "@hapi/hoek": "npm:^9.0.0" + "@hapi/topo": "npm:^5.0.0" + checksum: 10c0/dff9f31a5cae3356ae98cef99d5c5cf9c056b452a22755945ed27df987f5a690f6372fcd7f55c319c8c546906b5943fd6783d5620a0f0369d243a2b47f0fbee7 + languageName: node + linkType: hard + "@humanwhocodes/config-array@npm:^0.12.3": version: 0.12.3 resolution: "@humanwhocodes/config-array@npm:0.12.3" @@ -681,6 +979,403 @@ __metadata: languageName: node linkType: hard +"@opentelemetry/api-logs@npm:0.49.1": + version: 0.49.1 + resolution: "@opentelemetry/api-logs@npm:0.49.1" + dependencies: + "@opentelemetry/api": "npm:^1.0.0" + checksum: 10c0/479d8529c0e51effa92e265ba15b75dc010aefe97beb04f6d407d8298a5dcefb0c7fcdaff8c2a65e2a41435d8951407b37e6deb878b5e0191887176faa9565f8 + languageName: node + linkType: hard + +"@opentelemetry/api-logs@npm:0.50.0": + version: 0.50.0 + resolution: "@opentelemetry/api-logs@npm:0.50.0" + dependencies: + "@opentelemetry/api": "npm:^1.0.0" + checksum: 10c0/df55e207db749efe05fc628fcde1e8b7fa277ccc126f749ee376abfdd8e6c622618930756647b9d556319896bbe270398940fbd2c07529c3ca7cc9dac8fd71ae + languageName: node + linkType: hard + +"@opentelemetry/api@npm:1.8.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/context-async-hooks@npm:^1.23.0": + version: 1.24.0 + resolution: "@opentelemetry/context-async-hooks@npm:1.24.0" + peerDependencies: + "@opentelemetry/api": ">=1.0.0 <1.9.0" + checksum: 10c0/a23ef85490a28587c98cb03bbf69f2645c2b220048e87e8f1d42df39b2b1c9d1ec61fc190874661b132ce62cd3e5371aa3bcc218a55ce920edf49bdc47244271 + languageName: node + linkType: hard + +"@opentelemetry/core@npm:1.21.0": + version: 1.21.0 + resolution: "@opentelemetry/core@npm:1.21.0" + dependencies: + "@opentelemetry/semantic-conventions": "npm:1.21.0" + peerDependencies: + "@opentelemetry/api": ">=1.0.0 <1.8.0" + checksum: 10c0/e6f1adcd224944f725ccfc4a337cb20405cb2081fa0a2a66a47a9044b248f47318f43c6d140e8ebbd4082d8657894e9d1a8e1a10db112ca8896c6bc4494c346c + languageName: node + linkType: hard + +"@opentelemetry/core@npm:1.22.0": + version: 1.22.0 + resolution: "@opentelemetry/core@npm:1.22.0" + dependencies: + "@opentelemetry/semantic-conventions": "npm:1.22.0" + peerDependencies: + "@opentelemetry/api": ">=1.0.0 <1.9.0" + checksum: 10c0/4850f6f407e4a4df72825d88b7dbe653e23f34a6dcba0b2d05725d0b497e1d44069909301b0efa1d4eac577225f10f5e86e09cb5338aacf28e2467b6d7d4c3b1 + languageName: node + linkType: hard + +"@opentelemetry/core@npm:1.24.0, @opentelemetry/core@npm:^1.1.0, @opentelemetry/core@npm:^1.23.0, @opentelemetry/core@npm:^1.8.0": + version: 1.24.0 + resolution: "@opentelemetry/core@npm:1.24.0" + dependencies: + "@opentelemetry/semantic-conventions": "npm:1.24.0" + peerDependencies: + "@opentelemetry/api": ">=1.0.0 <1.9.0" + checksum: 10c0/b3e3649d899dd2d2cbb99ee41105cf37b64360d1d34f5065ddf4ca2a73e4936883307b07b15973c2b246274a76b0ad638cb5bb19abf03675ad702f4c03172a53 + languageName: node + linkType: hard + +"@opentelemetry/instrumentation-connect@npm:0.35.0": + version: 0.35.0 + resolution: "@opentelemetry/instrumentation-connect@npm:0.35.0" + dependencies: + "@opentelemetry/core": "npm:^1.8.0" + "@opentelemetry/instrumentation": "npm:^0.50.0" + "@opentelemetry/semantic-conventions": "npm:^1.0.0" + "@types/connect": "npm:3.4.36" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/b2939e3e1bce513dc6e9346b7d8d0679caa9af68237674185080a4f415f86a088f76b53e5a0c9039902758e98033b4581b4556e0a2c1998e0d2d60dba5efb99a + languageName: node + linkType: hard + +"@opentelemetry/instrumentation-express@npm:0.35.0": + version: 0.35.0 + resolution: "@opentelemetry/instrumentation-express@npm:0.35.0" + dependencies: + "@opentelemetry/core": "npm:^1.8.0" + "@opentelemetry/instrumentation": "npm:^0.48.0" + "@opentelemetry/semantic-conventions": "npm:^1.0.0" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/361b1c7ea191979645c31224e3e9a20e4d2aab26101bd70816b76ecc6ec34858f97bacf4c5c03d912f2a8cd246792e7f4883415ad977f97d24f8e1210f2198d4 + languageName: node + linkType: hard + +"@opentelemetry/instrumentation-fastify@npm:0.35.0": + version: 0.35.0 + resolution: "@opentelemetry/instrumentation-fastify@npm:0.35.0" + dependencies: + "@opentelemetry/core": "npm:^1.8.0" + "@opentelemetry/instrumentation": "npm:^0.50.0" + "@opentelemetry/semantic-conventions": "npm:^1.0.0" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/063c2ea6283284ea73e08700eeba7fffb3cbd098b247e193d71ae70252c8642e327acde85250b34651edf656230257b26e8cfe748f6392d98e83a5f74cfebaae + languageName: node + linkType: hard + +"@opentelemetry/instrumentation-graphql@npm:0.39.0": + version: 0.39.0 + resolution: "@opentelemetry/instrumentation-graphql@npm:0.39.0" + dependencies: + "@opentelemetry/instrumentation": "npm:^0.50.0" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/86052542be3722ca8a51276449dd6a246e60d74b275e6c501f82283d1136a3dc32b5475bffab7301a7bfcf95d8da2ab080e85be635c04bac8a0c170262aef6ac + languageName: node + linkType: hard + +"@opentelemetry/instrumentation-hapi@npm:0.36.0": + version: 0.36.0 + resolution: "@opentelemetry/instrumentation-hapi@npm:0.36.0" + dependencies: + "@opentelemetry/core": "npm:^1.8.0" + "@opentelemetry/instrumentation": "npm:^0.50.0" + "@opentelemetry/semantic-conventions": "npm:^1.0.0" + "@types/hapi__hapi": "npm:20.0.13" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/92af5b1d2f226340a819063765b399295a0e72e1a329472fb40fc732e0dd77ef3edfba041c57eee7c0d07f0f711e38069aa9573a124a407ac1c3e94af3b4ae5e + languageName: node + linkType: hard + +"@opentelemetry/instrumentation-http@npm:0.48.0": + version: 0.48.0 + resolution: "@opentelemetry/instrumentation-http@npm:0.48.0" + dependencies: + "@opentelemetry/core": "npm:1.21.0" + "@opentelemetry/instrumentation": "npm:0.48.0" + "@opentelemetry/semantic-conventions": "npm:1.21.0" + semver: "npm:^7.5.2" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/c02e3b4168d709c453c14e29d11e37e9c29b1791c5266948f0ead77777c1e343c6450e9851558790596a311bf4bf068b685a0314713d3fda083994c5463fae28 + languageName: node + linkType: hard + +"@opentelemetry/instrumentation-koa@npm:0.39.0": + version: 0.39.0 + resolution: "@opentelemetry/instrumentation-koa@npm:0.39.0" + dependencies: + "@opentelemetry/core": "npm:^1.8.0" + "@opentelemetry/instrumentation": "npm:^0.50.0" + "@opentelemetry/semantic-conventions": "npm:^1.22.0" + "@types/koa": "npm:2.14.0" + "@types/koa__router": "npm:12.0.3" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/464b69d82071bd8f1360e4f3280dce25ce26305ec791be5866b279ddb42f9b64c196814c1eb21c6bc4d13b039a71c1a3f3ef301883321c920e5e49057ad88dba + languageName: node + linkType: hard + +"@opentelemetry/instrumentation-mongodb@npm:0.39.0": + version: 0.39.0 + resolution: "@opentelemetry/instrumentation-mongodb@npm:0.39.0" + dependencies: + "@opentelemetry/instrumentation": "npm:^0.48.0" + "@opentelemetry/sdk-metrics": "npm:^1.9.1" + "@opentelemetry/semantic-conventions": "npm:^1.0.0" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/7dc7fe5fb9c18cdbdd882ccc83ecf9587e4822cfa5b730bd8b437029cc8df6d3e4e4838e3e2c4c04d568b88a053006328ed1055bf874d5ee6b5eefeabcd15386 + languageName: node + linkType: hard + +"@opentelemetry/instrumentation-mongoose@npm:0.37.0": + version: 0.37.0 + resolution: "@opentelemetry/instrumentation-mongoose@npm:0.37.0" + dependencies: + "@opentelemetry/core": "npm:^1.8.0" + "@opentelemetry/instrumentation": "npm:^0.50.0" + "@opentelemetry/semantic-conventions": "npm:^1.0.0" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/2cb14b560e274e5d1085b22c5d23b6f7d815506e97d5ea8dac91111318333854fe7a19961867d99790a564cea547ad8db73ab1e1d2d107e59b0f74e23398c0c6 + languageName: node + linkType: hard + +"@opentelemetry/instrumentation-mysql2@npm:0.37.0": + version: 0.37.0 + resolution: "@opentelemetry/instrumentation-mysql2@npm:0.37.0" + dependencies: + "@opentelemetry/instrumentation": "npm:^0.50.0" + "@opentelemetry/semantic-conventions": "npm:^1.0.0" + "@opentelemetry/sql-common": "npm:^0.40.0" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/283d533ba87acb3347e2b9f7af0c448da7e675b181da298ebd46ced923210a9891b710c36a0f209892db8ce820ce69a48aaba3fbb0783a142453eb2dc8a1f2fe + languageName: node + linkType: hard + +"@opentelemetry/instrumentation-mysql@npm:0.37.0": + version: 0.37.0 + resolution: "@opentelemetry/instrumentation-mysql@npm:0.37.0" + dependencies: + "@opentelemetry/instrumentation": "npm:^0.50.0" + "@opentelemetry/semantic-conventions": "npm:^1.0.0" + "@types/mysql": "npm:2.15.22" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/f12de2831d995905192b8e7b7389060283810b037be6332f65d7119b7bb5863255aa23836d568258378c59e2e0ab3b8feca0b0b2c8cb5ac61af24d1c21c9e27b + languageName: node + linkType: hard + +"@opentelemetry/instrumentation-nestjs-core@npm:0.36.0": + version: 0.36.0 + resolution: "@opentelemetry/instrumentation-nestjs-core@npm:0.36.0" + dependencies: + "@opentelemetry/instrumentation": "npm:^0.50.0" + "@opentelemetry/semantic-conventions": "npm:^1.0.0" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/98001a0ee8fe6f3b40e82f7a01d6fe634b2014e296a70d931928b7b6d13955a1cc2c9b3db583cd825d64a4fa0190495ac3232bcb1699e586cb522a83141bab46 + languageName: node + linkType: hard + +"@opentelemetry/instrumentation-pg@npm:0.40.0": + version: 0.40.0 + resolution: "@opentelemetry/instrumentation-pg@npm:0.40.0" + dependencies: + "@opentelemetry/instrumentation": "npm:^0.50.0" + "@opentelemetry/semantic-conventions": "npm:^1.22.0" + "@opentelemetry/sql-common": "npm:^0.40.0" + "@types/pg": "npm:8.6.1" + "@types/pg-pool": "npm:2.0.4" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/fba3d2c7232bf7394aa8bd62596f6c3f63a6dfa6ca2edaa679a133ca2ad5837b51842b5872888b1558029b37b0305cc82764a5351d24aa143dc1f4c8ac21738f + languageName: node + linkType: hard + +"@opentelemetry/instrumentation@npm:0.48.0, @opentelemetry/instrumentation@npm:^0.48.0": + version: 0.48.0 + resolution: "@opentelemetry/instrumentation@npm:0.48.0" + dependencies: + "@types/shimmer": "npm:^1.0.2" + import-in-the-middle: "npm:1.7.1" + require-in-the-middle: "npm:^7.1.1" + semver: "npm:^7.5.2" + shimmer: "npm:^1.2.1" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/627d4246c1a6d62d0b1b96d967c62284bf98cefae76f5c5b07f827473cec89030121d343c0c0631f251e8d52cd01822bc4af704970d9c0988be6b4d0c226c8b4 + languageName: node + linkType: hard + +"@opentelemetry/instrumentation@npm:0.49.1": + version: 0.49.1 + resolution: "@opentelemetry/instrumentation@npm:0.49.1" + dependencies: + "@opentelemetry/api-logs": "npm:0.49.1" + "@types/shimmer": "npm:^1.0.2" + import-in-the-middle: "npm:1.7.1" + require-in-the-middle: "npm:^7.1.1" + semver: "npm:^7.5.2" + shimmer: "npm:^1.2.1" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/dcfecde045fb715593461f51e6f948b22f79d2cf198b6de99293cdbae650942cfc5cbf36585f1690b865f1bd4ae7b25ea273b65a33fa6f8f54a418663027dd90 + languageName: node + linkType: hard + +"@opentelemetry/instrumentation@npm:^0.43.0": + version: 0.43.0 + resolution: "@opentelemetry/instrumentation@npm:0.43.0" + dependencies: + "@types/shimmer": "npm:^1.0.2" + import-in-the-middle: "npm:1.4.2" + require-in-the-middle: "npm:^7.1.1" + semver: "npm:^7.5.2" + shimmer: "npm:^1.2.1" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/78682576ec5094eaa20e5e6766f93329d495cb4a58cbc56a95752ff15bfc58a511ffe0981b596eb7b893014441f4c748028448b35ff5e37f82b1e1917f9610c7 + languageName: node + linkType: hard + +"@opentelemetry/instrumentation@npm:^0.50.0": + version: 0.50.0 + resolution: "@opentelemetry/instrumentation@npm:0.50.0" + dependencies: + "@opentelemetry/api-logs": "npm:0.50.0" + "@types/shimmer": "npm:^1.0.2" + import-in-the-middle: "npm:1.7.1" + require-in-the-middle: "npm:^7.1.1" + semver: "npm:^7.5.2" + shimmer: "npm:^1.2.1" + peerDependencies: + "@opentelemetry/api": ^1.3.0 + checksum: 10c0/db125eb5da63dc8a890d2db6c1693832c646bd15ca4852ea5bdf9d1b9b920518e2167603d7dc21fe59db8d172fbca3650fbcd88226ac13e79a84ce3b41d6c06f + languageName: node + linkType: hard + +"@opentelemetry/resources@npm:1.22.0": + version: 1.22.0 + resolution: "@opentelemetry/resources@npm:1.22.0" + dependencies: + "@opentelemetry/core": "npm:1.22.0" + "@opentelemetry/semantic-conventions": "npm:1.22.0" + peerDependencies: + "@opentelemetry/api": ">=1.0.0 <1.9.0" + checksum: 10c0/f8681d3f907bb44742223980283dd35fcf2fd52e6b6874063e0ed7fea21a3dc65c0dc05a66f21ee41d018343bc90d0221a018ac0d5a92ef01e623f4fe94355fd + languageName: node + linkType: hard + +"@opentelemetry/resources@npm:1.24.0, @opentelemetry/resources@npm:^1.23.0": + version: 1.24.0 + resolution: "@opentelemetry/resources@npm:1.24.0" + dependencies: + "@opentelemetry/core": "npm:1.24.0" + "@opentelemetry/semantic-conventions": "npm:1.24.0" + peerDependencies: + "@opentelemetry/api": ">=1.0.0 <1.9.0" + checksum: 10c0/9f47acad4a65ffc05090b66119a4624220134336279de8438ce3309e69cb80bd894bcad05969fbd3069f2c80e62d0265f62ca967d06e8069177a8402c091f7c7 + languageName: node + linkType: hard + +"@opentelemetry/sdk-metrics@npm:^1.9.1": + version: 1.24.0 + resolution: "@opentelemetry/sdk-metrics@npm:1.24.0" + dependencies: + "@opentelemetry/core": "npm:1.24.0" + "@opentelemetry/resources": "npm:1.24.0" + lodash.merge: "npm:^4.6.2" + peerDependencies: + "@opentelemetry/api": ">=1.3.0 <1.9.0" + checksum: 10c0/befab7e4b3e0a905001d34f364334ba75853770464b525cf0d2ad08b2bcc7547db9405491820af170284b215930e29fae4a2a30aacc6dfd48d2fa21b8ce0e7e8 + languageName: node + linkType: hard + +"@opentelemetry/sdk-trace-base@npm:1.22.0": + version: 1.22.0 + resolution: "@opentelemetry/sdk-trace-base@npm:1.22.0" + dependencies: + "@opentelemetry/core": "npm:1.22.0" + "@opentelemetry/resources": "npm:1.22.0" + "@opentelemetry/semantic-conventions": "npm:1.22.0" + peerDependencies: + "@opentelemetry/api": ">=1.0.0 <1.9.0" + checksum: 10c0/e7240d6e3f63e892516602eeb443803398cee171167608eb043f8d077f9489be2062f538b7e7766392db7419a33e7845f6ed070e13a0932017596b139c232950 + languageName: node + linkType: hard + +"@opentelemetry/sdk-trace-base@npm:^1.23.0": + version: 1.24.0 + resolution: "@opentelemetry/sdk-trace-base@npm:1.24.0" + dependencies: + "@opentelemetry/core": "npm:1.24.0" + "@opentelemetry/resources": "npm:1.24.0" + "@opentelemetry/semantic-conventions": "npm:1.24.0" + peerDependencies: + "@opentelemetry/api": ">=1.0.0 <1.9.0" + checksum: 10c0/ace49c722e1c52e150133883d98a63f7f91855e564c6c7ffff21dcab288a7573152eef0fac08cabbe823debaa8feb8cf3dd662d6d09944b106a0a189926fac2d + languageName: node + linkType: hard + +"@opentelemetry/semantic-conventions@npm:1.21.0": + version: 1.21.0 + resolution: "@opentelemetry/semantic-conventions@npm:1.21.0" + checksum: 10c0/ba1eabdbe5cdc04cbb7ce28f2df91fc95000e14861eb93937cfc7768d29c7e57692eb4fb2645f6ba87ae046acc1d1e27e4e6415e46e03015d54a6fdaf8e9635b + languageName: node + linkType: hard + +"@opentelemetry/semantic-conventions@npm:1.22.0": + version: 1.22.0 + resolution: "@opentelemetry/semantic-conventions@npm:1.22.0" + checksum: 10c0/35d4aae14111fd65becf667fb935aef673f820dba0e160cdf02dfee19b8eb169a8ba3f7db4db8a40d82a15989f465faf085b4ba41895ba2c89f8e631f5e53f08 + languageName: node + linkType: hard + +"@opentelemetry/semantic-conventions@npm:1.24.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.24.0 + resolution: "@opentelemetry/semantic-conventions@npm:1.24.0" + checksum: 10c0/0b7a8e1407c3c606c82e7720654c1808cdc2a6bd78641bca74c56a37b25f08574b33f02386ae2382373a7f70614d8a904b364cc0af9b2d33582c104a5df6eaa7 + languageName: node + linkType: hard + +"@opentelemetry/sql-common@npm:^0.40.0": + version: 0.40.1 + resolution: "@opentelemetry/sql-common@npm:0.40.1" + dependencies: + "@opentelemetry/core": "npm:^1.1.0" + peerDependencies: + "@opentelemetry/api": ^1.1.0 + checksum: 10c0/60a70358f0c94f610e2995333e96b406626d67d03d38ed03b15a3461ad0f8d64afbf6275cca7cb58fe955ecdce832f3ffc9b73f9d88503bba5d2a620bbd6d351 + languageName: node + linkType: hard + "@pkgjs/parseargs@npm:^0.11.0": version: 0.11.0 resolution: "@pkgjs/parseargs@npm:0.11.0" @@ -688,6 +1383,17 @@ __metadata: languageName: node linkType: hard +"@prisma/instrumentation@npm:5.12.1": + version: 5.12.1 + resolution: "@prisma/instrumentation@npm:5.12.1" + dependencies: + "@opentelemetry/api": "npm:1.8.0" + "@opentelemetry/instrumentation": "npm:0.49.1" + "@opentelemetry/sdk-trace-base": "npm:1.22.0" + checksum: 10c0/af478a38c5974ba0daae805dc8fe6594ce5ae5bcacafb1a8e4bd777d7c5b63e910383c7bcc8c4d76884b3889bc90949894f4b3121e70809c36704ebcf1456a73 + languageName: node + linkType: hard + "@rollup/plugin-commonjs@npm:24.0.0": version: 24.0.0 resolution: "@rollup/plugin-commonjs@npm:24.0.0" @@ -723,6 +1429,17 @@ __metadata: languageName: node linkType: hard +"@sentry-internal/browser-utils@npm:8.0.0-beta.4": + version: 8.0.0-beta.4 + resolution: "@sentry-internal/browser-utils@npm:8.0.0-beta.4" + dependencies: + "@sentry/core": "npm:8.0.0-beta.4" + "@sentry/types": "npm:8.0.0-beta.4" + "@sentry/utils": "npm:8.0.0-beta.4" + checksum: 10c0/673cfefcc6203b1a365261658340be1703ff4d3d3bdc900b90194d9e529dba1b7d2e6e8648c13d5b91833f3f8b4a3753f74a932257061ae68487fa5e1dc27d3e + languageName: node + linkType: hard + "@sentry-internal/feedback@npm:7.110.1": version: 7.110.1 resolution: "@sentry-internal/feedback@npm:7.110.1" @@ -734,6 +1451,18 @@ __metadata: languageName: node linkType: hard +"@sentry-internal/feedback@npm:8.0.0-beta.4": + version: 8.0.0-beta.4 + resolution: "@sentry-internal/feedback@npm:8.0.0-beta.4" + dependencies: + "@sentry/core": "npm:8.0.0-beta.4" + "@sentry/types": "npm:8.0.0-beta.4" + "@sentry/utils": "npm:8.0.0-beta.4" + preact: "npm:^10.19.4" + checksum: 10c0/2061d2bfb19ddce674fb55974cd0db913e24ca33432cf9efc2c0f1c0af036810a6ec18694cb04530bbc7ba8197c7a54a8a524fed68b2b238e707c642d7b74ac1 + languageName: node + linkType: hard + "@sentry-internal/replay-canvas@npm:7.110.1": version: 7.110.1 resolution: "@sentry-internal/replay-canvas@npm:7.110.1" @@ -746,6 +1475,30 @@ __metadata: languageName: node linkType: hard +"@sentry-internal/replay-canvas@npm:8.0.0-beta.4": + version: 8.0.0-beta.4 + resolution: "@sentry-internal/replay-canvas@npm:8.0.0-beta.4" + dependencies: + "@sentry-internal/replay": "npm:8.0.0-beta.4" + "@sentry/core": "npm:8.0.0-beta.4" + "@sentry/types": "npm:8.0.0-beta.4" + "@sentry/utils": "npm:8.0.0-beta.4" + checksum: 10c0/a496a25f94ff459eefb55d39a05d7e041064155a90151e415f78ea7a9ed988c0a6d1a62ebfca41465c9e84195ee5c23243a41b27699ce93d12ed6276bc2ea8db + languageName: node + linkType: hard + +"@sentry-internal/replay@npm:8.0.0-beta.4": + version: 8.0.0-beta.4 + resolution: "@sentry-internal/replay@npm:8.0.0-beta.4" + dependencies: + "@sentry-internal/browser-utils": "npm:8.0.0-beta.4" + "@sentry/core": "npm:8.0.0-beta.4" + "@sentry/types": "npm:8.0.0-beta.4" + "@sentry/utils": "npm:8.0.0-beta.4" + checksum: 10c0/711e3d42411afc929914e447386d3d2bee6862ff6d597141dcafa792c11430f8a5aaff9fbdec87e8efd501bd30d1f9a4f95dd09ed839b533f3fe7e2cc502fd62 + languageName: node + linkType: hard + "@sentry-internal/tracing@npm:7.110.1": version: 7.110.1 resolution: "@sentry-internal/tracing@npm:7.110.1" @@ -757,6 +1510,13 @@ __metadata: languageName: node linkType: hard +"@sentry/babel-plugin-component-annotate@npm:2.16.0": + version: 2.16.0 + resolution: "@sentry/babel-plugin-component-annotate@npm:2.16.0" + checksum: 10c0/90e20fb70125e886cf21797784c00782179aa1e5611ab939e9175dd56536270debf86bdc93ca2f6ed396e90f268d01c46a0bdbf2a24dd09ba5f32f86618ae3bc + languageName: node + linkType: hard + "@sentry/browser@npm:7.110.1": version: 7.110.1 resolution: "@sentry/browser@npm:7.110.1" @@ -772,6 +1532,86 @@ __metadata: languageName: node linkType: hard +"@sentry/browser@npm:8.0.0-beta.4": + version: 8.0.0-beta.4 + resolution: "@sentry/browser@npm:8.0.0-beta.4" + dependencies: + "@sentry-internal/browser-utils": "npm:8.0.0-beta.4" + "@sentry-internal/feedback": "npm:8.0.0-beta.4" + "@sentry-internal/replay": "npm:8.0.0-beta.4" + "@sentry-internal/replay-canvas": "npm:8.0.0-beta.4" + "@sentry/core": "npm:8.0.0-beta.4" + "@sentry/types": "npm:8.0.0-beta.4" + "@sentry/utils": "npm:8.0.0-beta.4" + checksum: 10c0/49b6782d5ee962be9ff41914d54e28b331c308e4ad815bc286db672750fda55a7d5ede8ee437605037666d53195b58e0c3438f76479409e80394d5a7fe5413f5 + languageName: node + linkType: hard + +"@sentry/bundler-plugin-core@npm:2.16.0": + version: 2.16.0 + resolution: "@sentry/bundler-plugin-core@npm:2.16.0" + dependencies: + "@babel/core": "npm:^7.18.5" + "@sentry/babel-plugin-component-annotate": "npm:2.16.0" + "@sentry/cli": "npm:^2.22.3" + dotenv: "npm:^16.3.1" + find-up: "npm:^5.0.0" + glob: "npm:^9.3.2" + magic-string: "npm:0.27.0" + unplugin: "npm:1.0.1" + checksum: 10c0/dae16b721bec3a3829a650656ae588501f9cc8248256103894ff743606b69a12a70724926c08ffe72445107af97a22440b85c5384073346f8da45c80dda4932d + languageName: node + linkType: hard + +"@sentry/cli-darwin@npm:2.31.0": + version: 2.31.0 + resolution: "@sentry/cli-darwin@npm:2.31.0" + conditions: os=darwin + languageName: node + linkType: hard + +"@sentry/cli-linux-arm64@npm:2.31.0": + version: 2.31.0 + resolution: "@sentry/cli-linux-arm64@npm:2.31.0" + conditions: (os=linux | os=freebsd) & cpu=arm64 + languageName: node + linkType: hard + +"@sentry/cli-linux-arm@npm:2.31.0": + version: 2.31.0 + resolution: "@sentry/cli-linux-arm@npm:2.31.0" + conditions: (os=linux | os=freebsd) & cpu=arm + languageName: node + linkType: hard + +"@sentry/cli-linux-i686@npm:2.31.0": + version: 2.31.0 + resolution: "@sentry/cli-linux-i686@npm:2.31.0" + conditions: (os=linux | os=freebsd) & (cpu=x86 | cpu=ia32) + languageName: node + linkType: hard + +"@sentry/cli-linux-x64@npm:2.31.0": + version: 2.31.0 + resolution: "@sentry/cli-linux-x64@npm:2.31.0" + conditions: (os=linux | os=freebsd) & cpu=x64 + languageName: node + linkType: hard + +"@sentry/cli-win32-i686@npm:2.31.0": + version: 2.31.0 + resolution: "@sentry/cli-win32-i686@npm:2.31.0" + conditions: os=win32 & (cpu=x86 | cpu=ia32) + languageName: node + linkType: hard + +"@sentry/cli-win32-x64@npm:2.31.0": + version: 2.31.0 + resolution: "@sentry/cli-win32-x64@npm:2.31.0" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@sentry/cli@npm:^1.77.1": version: 1.77.3 resolution: "@sentry/cli@npm:1.77.3" @@ -788,6 +1628,43 @@ __metadata: languageName: node linkType: hard +"@sentry/cli@npm:^2.22.3": + version: 2.31.0 + resolution: "@sentry/cli@npm:2.31.0" + dependencies: + "@sentry/cli-darwin": "npm:2.31.0" + "@sentry/cli-linux-arm": "npm:2.31.0" + "@sentry/cli-linux-arm64": "npm:2.31.0" + "@sentry/cli-linux-i686": "npm:2.31.0" + "@sentry/cli-linux-x64": "npm:2.31.0" + "@sentry/cli-win32-i686": "npm:2.31.0" + "@sentry/cli-win32-x64": "npm:2.31.0" + https-proxy-agent: "npm:^5.0.0" + node-fetch: "npm:^2.6.7" + progress: "npm:^2.0.3" + proxy-from-env: "npm:^1.1.0" + which: "npm:^2.0.2" + dependenciesMeta: + "@sentry/cli-darwin": + optional: true + "@sentry/cli-linux-arm": + optional: true + "@sentry/cli-linux-arm64": + optional: true + "@sentry/cli-linux-i686": + optional: true + "@sentry/cli-linux-x64": + optional: true + "@sentry/cli-win32-i686": + optional: true + "@sentry/cli-win32-x64": + optional: true + bin: + sentry-cli: bin/sentry-cli + checksum: 10c0/ddd0d48966c81d62435bb28adf0bfeb8596f1bbbb1328db46ee7736a766b73d553bb17ebf7f40796a1f641f14e48316a1cf95559129ecc5d61fb7737eb11b516 + languageName: node + linkType: hard + "@sentry/core@npm:7.110.1": version: 7.110.1 resolution: "@sentry/core@npm:7.110.1" @@ -798,6 +1675,16 @@ __metadata: languageName: node linkType: hard +"@sentry/core@npm:8.0.0-beta.4": + version: 8.0.0-beta.4 + resolution: "@sentry/core@npm:8.0.0-beta.4" + dependencies: + "@sentry/types": "npm:8.0.0-beta.4" + "@sentry/utils": "npm:8.0.0-beta.4" + checksum: 10c0/0a28139015a01d611b35ec5f8b474f79bc8783b7188935a06f592c7af54a2bdf80b4cce0f54f12f569520118b81d0485d57e599d37399ddf4c143561eae25822 + languageName: node + linkType: hard + "@sentry/integrations@npm:7.110.1": version: 7.110.1 resolution: "@sentry/integrations@npm:7.110.1" @@ -838,6 +1725,35 @@ __metadata: languageName: node linkType: hard +"@sentry/nextjs@npm:8.0.0-beta.4": + version: 8.0.0-beta.4 + resolution: "@sentry/nextjs@npm:8.0.0-beta.4" + dependencies: + "@opentelemetry/instrumentation-http": "npm:0.48.0" + "@rollup/plugin-commonjs": "npm:24.0.0" + "@sentry/core": "npm:8.0.0-beta.4" + "@sentry/node": "npm:8.0.0-beta.4" + "@sentry/opentelemetry": "npm:8.0.0-beta.4" + "@sentry/react": "npm:8.0.0-beta.4" + "@sentry/types": "npm:8.0.0-beta.4" + "@sentry/utils": "npm:8.0.0-beta.4" + "@sentry/vercel-edge": "npm:8.0.0-beta.4" + "@sentry/webpack-plugin": "npm:2.16.0" + chalk: "npm:3.0.0" + resolve: "npm:1.22.8" + rollup: "npm:3.29.4" + stacktrace-parser: "npm:^0.1.10" + peerDependencies: + next: ^13.2.0 || ^14.0 + react: 16.x || 17.x || 18.x + webpack: ">= 5.0.0" + peerDependenciesMeta: + webpack: + optional: true + checksum: 10c0/6c9cdde41f56e29b5a6f5a6eb0d77d99b6fce2c59609d620b99d4bb05a26eefed1a2b369b81ab249339e0d4872d4fb96da21ae8a0e03325da77f54cfba309afd + languageName: node + linkType: hard + "@sentry/node@npm:7.110.1": version: 7.110.1 resolution: "@sentry/node@npm:7.110.1" @@ -850,6 +1766,60 @@ __metadata: languageName: node linkType: hard +"@sentry/node@npm:8.0.0-beta.4": + version: 8.0.0-beta.4 + resolution: "@sentry/node@npm:8.0.0-beta.4" + dependencies: + "@opentelemetry/api": "npm:^1.8.0" + "@opentelemetry/context-async-hooks": "npm:^1.23.0" + "@opentelemetry/core": "npm:^1.23.0" + "@opentelemetry/instrumentation": "npm:0.48.0" + "@opentelemetry/instrumentation-connect": "npm:0.35.0" + "@opentelemetry/instrumentation-express": "npm:0.35.0" + "@opentelemetry/instrumentation-fastify": "npm:0.35.0" + "@opentelemetry/instrumentation-graphql": "npm:0.39.0" + "@opentelemetry/instrumentation-hapi": "npm:0.36.0" + "@opentelemetry/instrumentation-http": "npm:0.48.0" + "@opentelemetry/instrumentation-koa": "npm:0.39.0" + "@opentelemetry/instrumentation-mongodb": "npm:0.39.0" + "@opentelemetry/instrumentation-mongoose": "npm:0.37.0" + "@opentelemetry/instrumentation-mysql": "npm:0.37.0" + "@opentelemetry/instrumentation-mysql2": "npm:0.37.0" + "@opentelemetry/instrumentation-nestjs-core": "npm:0.36.0" + "@opentelemetry/instrumentation-pg": "npm:0.40.0" + "@opentelemetry/resources": "npm:^1.23.0" + "@opentelemetry/sdk-trace-base": "npm:^1.23.0" + "@opentelemetry/semantic-conventions": "npm:^1.23.0" + "@prisma/instrumentation": "npm:5.12.1" + "@sentry/core": "npm:8.0.0-beta.4" + "@sentry/opentelemetry": "npm:8.0.0-beta.4" + "@sentry/types": "npm:8.0.0-beta.4" + "@sentry/utils": "npm:8.0.0-beta.4" + opentelemetry-instrumentation-fetch-node: "npm:1.2.0" + dependenciesMeta: + opentelemetry-instrumentation-fetch-node: + optional: true + checksum: 10c0/23a730961beae255db1e7956174e92c7a19be38d55cfde1cd71c2151b80a4c2bce0a864ca216430dd886f5a690f0598bf375150281d751ae30cdb7d799133a24 + languageName: node + linkType: hard + +"@sentry/opentelemetry@npm:8.0.0-beta.4": + version: 8.0.0-beta.4 + resolution: "@sentry/opentelemetry@npm:8.0.0-beta.4" + dependencies: + "@sentry/core": "npm:8.0.0-beta.4" + "@sentry/types": "npm:8.0.0-beta.4" + "@sentry/utils": "npm:8.0.0-beta.4" + peerDependencies: + "@opentelemetry/api": ^1.8.0 + "@opentelemetry/core": ^1.23.0 + "@opentelemetry/instrumentation": 0.48.0 + "@opentelemetry/sdk-trace-base": ^1.23.0 + "@opentelemetry/semantic-conventions": ^1.23.0 + checksum: 10c0/f8fd613fc480c9648d621c300d381b4fcc490e59b280937feaca460c3599fefb1308a1dc577a60eea64541c377823dba7b0905a569d607fea526d62b3eb5f350 + languageName: node + linkType: hard + "@sentry/react@npm:7.110.1": version: 7.110.1 resolution: "@sentry/react@npm:7.110.1" @@ -865,6 +1835,21 @@ __metadata: languageName: node linkType: hard +"@sentry/react@npm:8.0.0-beta.4": + version: 8.0.0-beta.4 + resolution: "@sentry/react@npm:8.0.0-beta.4" + dependencies: + "@sentry/browser": "npm:8.0.0-beta.4" + "@sentry/core": "npm:8.0.0-beta.4" + "@sentry/types": "npm:8.0.0-beta.4" + "@sentry/utils": "npm:8.0.0-beta.4" + hoist-non-react-statics: "npm:^3.3.2" + peerDependencies: + react: 16.x || 17.x || 18.x + checksum: 10c0/3a7a30e71731d2e6b5d482462c2ad6130b320353471da0e692055d264401e75661dcb4600fc2f694f6f873585a17f94aa4978e20ca1efcc48adfb3286e90c4a9 + languageName: node + linkType: hard + "@sentry/replay@npm:7.110.1": version: 7.110.1 resolution: "@sentry/replay@npm:7.110.1" @@ -884,6 +1869,13 @@ __metadata: languageName: node linkType: hard +"@sentry/types@npm:8.0.0-beta.4": + version: 8.0.0-beta.4 + resolution: "@sentry/types@npm:8.0.0-beta.4" + checksum: 10c0/ae84e3b8be9432511a4c2696e3bcce14c98957ad7b4af9f2630cfe2f8e2bbc8e044524b7909589ccfec436bcac91f45ebd671ffd83ac7e3b49f00a963f7696bb + languageName: node + linkType: hard + "@sentry/utils@npm:7.110.1": version: 7.110.1 resolution: "@sentry/utils@npm:7.110.1" @@ -893,6 +1885,15 @@ __metadata: languageName: node linkType: hard +"@sentry/utils@npm:8.0.0-beta.4": + version: 8.0.0-beta.4 + resolution: "@sentry/utils@npm:8.0.0-beta.4" + dependencies: + "@sentry/types": "npm:8.0.0-beta.4" + checksum: 10c0/9cfcf8a0128521df6b0505c222075875de7fbd73e2e111a92c73ec8db7981a60231e1d2b6192e400a5aa674d9e952d760c905f300172d3ad00fdb170de2a4843 + languageName: node + linkType: hard + "@sentry/vercel-edge@npm:7.110.1": version: 7.110.1 resolution: "@sentry/vercel-edge@npm:7.110.1" @@ -905,13 +1906,60 @@ __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 +"@sentry/vercel-edge@npm:8.0.0-beta.4": + version: 8.0.0-beta.4 + resolution: "@sentry/vercel-edge@npm:8.0.0-beta.4" + dependencies: + "@sentry/core": "npm:8.0.0-beta.4" + "@sentry/types": "npm:8.0.0-beta.4" + "@sentry/utils": "npm:8.0.0-beta.4" + checksum: 10c0/e9e325eb67b44bb921372f7c5efe83afe99cd7d8a0cf02867a6fe59de373f2eaf66d735eecfbe4d87a651f360a59f80785aa456ac10fb1f8071ea92684c6cfc2 + 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.16.0": + version: 2.16.0 + resolution: "@sentry/webpack-plugin@npm:2.16.0" + dependencies: + "@sentry/bundler-plugin-core": "npm:2.16.0" + unplugin: "npm:1.0.1" + uuid: "npm:^9.0.0" + peerDependencies: + webpack: ">=4.40.0" + checksum: 10c0/14d0546765530ba763cfdafffad2fd046782e243dd2f357ce7f078341f09c0cadd0ffe72a740bc5f36bf9a98f61853634bf404d46c027061fc95b7ce12b54b63 + languageName: node + linkType: hard + +"@sideway/address@npm:^4.1.5": + version: 4.1.5 + resolution: "@sideway/address@npm:4.1.5" + dependencies: + "@hapi/hoek": "npm:^9.0.0" + checksum: 10c0/638eb6f7e7dba209053dd6c8da74d7cc995e2b791b97644d0303a7dd3119263bcb7225a4f6804d4db2bc4f96e5a9d262975a014f58eae4d1753c27cbc96ef959 + languageName: node + linkType: hard + +"@sideway/formula@npm:^3.0.1": + version: 3.0.1 + resolution: "@sideway/formula@npm:3.0.1" + checksum: 10c0/3fe81fa9662efc076bf41612b060eb9b02e846ea4bea5bd114f1662b7f1541e9dedcf98aff0d24400bcb92f113964a50e0290b86e284edbdf6346fa9b7e2bf2c + languageName: node + linkType: hard + +"@sideway/pinpoint@npm:^2.0.0": + version: 2.0.0 + resolution: "@sideway/pinpoint@npm:2.0.0" + checksum: 10c0/d2ca75dacaf69b8fc0bb8916a204e01def3105ee44d8be16c355e5f58189eb94039e15ce831f3d544f229889ccfa35562a0ce2516179f3a7ee1bbe0b71e55b36 languageName: node linkType: hard @@ -997,6 +2045,15 @@ __metadata: languageName: node linkType: hard +"@types/connect@npm:3.4.36": + version: 3.4.36 + resolution: "@types/connect@npm:3.4.36" + dependencies: + "@types/node": "npm:*" + checksum: 10c0/0dd8fcf576e178e69cbc00d47be69d3198dca4d86734a00fc55de0df147982e0a5f34592117571c5979e92ce8f3e0596e31aa454496db8a43ab90c5ab1068f40 + languageName: node + linkType: hard + "@types/content-disposition@npm:*": version: 0.5.8 resolution: "@types/content-disposition@npm:0.5.8" @@ -1067,6 +2124,47 @@ __metadata: languageName: node linkType: hard +"@types/hapi__catbox@npm:*": + version: 10.2.6 + resolution: "@types/hapi__catbox@npm:10.2.6" + checksum: 10c0/782d5c0a12655f785eab0e2c83bd415435cc825277165f7fec44229edce092b97f5c7bb73f00296a246a550bf074ca679b359b5b07a4669d0c6331a22e5be174 + languageName: node + linkType: hard + +"@types/hapi__hapi@npm:20.0.13": + version: 20.0.13 + resolution: "@types/hapi__hapi@npm:20.0.13" + dependencies: + "@hapi/boom": "npm:^9.0.0" + "@hapi/iron": "npm:^6.0.0" + "@hapi/podium": "npm:^4.1.3" + "@types/hapi__catbox": "npm:*" + "@types/hapi__mimos": "npm:*" + "@types/hapi__shot": "npm:*" + "@types/node": "npm:*" + joi: "npm:^17.3.0" + checksum: 10c0/7e993ead7c6b7d3d3d8ab0abeb39b4fa29f3608a29e585d5ccef16823b1f09959e94bbe8a72c4722e95016167da91c57ae2f18c4b13e2b9fc472a67f087e3bc2 + languageName: node + linkType: hard + +"@types/hapi__mimos@npm:*": + version: 4.1.4 + resolution: "@types/hapi__mimos@npm:4.1.4" + dependencies: + "@types/mime-db": "npm:*" + checksum: 10c0/c3e960a375bd02bb067dc041b7b64fcbc6b3520ca16229ab72c63e9b886b3c1b1b03bc08d2b01e9368ea177dae5e9a00d5cd3c8f37fd872a49fad2307805db22 + languageName: node + linkType: hard + +"@types/hapi__shot@npm:*": + version: 4.1.6 + resolution: "@types/hapi__shot@npm:4.1.6" + dependencies: + "@types/node": "npm:*" + checksum: 10c0/ffd39b424e593a54f044df11bc2216e2cc5c09a104e30be5ce8b8969693c713536b19bf6f472749ed12c2cf742aa11aa4184c48c5bd5124565ae1532db663c3b + languageName: node + linkType: hard + "@types/http-assert@npm:*": version: 1.5.5 resolution: "@types/http-assert@npm:1.5.5" @@ -1120,6 +2218,31 @@ __metadata: languageName: node linkType: hard +"@types/koa@npm:2.14.0": + version: 2.14.0 + resolution: "@types/koa@npm:2.14.0" + dependencies: + "@types/accepts": "npm:*" + "@types/content-disposition": "npm:*" + "@types/cookies": "npm:*" + "@types/http-assert": "npm:*" + "@types/http-errors": "npm:*" + "@types/keygrip": "npm:*" + "@types/koa-compose": "npm:*" + "@types/node": "npm:*" + checksum: 10c0/783536ea905244ec8edcda5f6063f34b3f4bfe16ff75f4d8faaa9b3ce58455ff140b20e63064a31491c1e7f34de4e869bce410fb116012887b9792c98591f744 + languageName: node + linkType: hard + +"@types/koa__router@npm:12.0.3": + version: 12.0.3 + resolution: "@types/koa__router@npm:12.0.3" + dependencies: + "@types/koa": "npm:*" + checksum: 10c0/f9e2c360bed2f326df2d2cb3d1dd508a14360ae2299516579bed9690084f92056df09f28946d3245e9ef67ee0688af4a27990036f0e9afc9eb31241852884612 + languageName: node + linkType: hard + "@types/koa__router@npm:12.0.4": version: 12.0.4 resolution: "@types/koa__router@npm:12.0.4" @@ -1129,6 +2252,13 @@ __metadata: languageName: node linkType: hard +"@types/mime-db@npm:*": + version: 1.43.5 + resolution: "@types/mime-db@npm:1.43.5" + checksum: 10c0/226af9f9126d1e4cc7241e8960087fb72b598179fb3aee2d35024d1583e2e83222199c0c63afa23763f1abc575e5514b3677505497608688d25155f8fd828a65 + languageName: node + linkType: hard + "@types/mime@npm:^1": version: 1.3.5 resolution: "@types/mime@npm:1.3.5" @@ -1136,6 +2266,15 @@ __metadata: languageName: node linkType: hard +"@types/mysql@npm:2.15.22": + version: 2.15.22 + resolution: "@types/mysql@npm:2.15.22" + dependencies: + "@types/node": "npm:*" + checksum: 10c0/872e7389985c954e7bf507cbe8f62f33c779d28e456b711d18133eaf9636487d0521e7f2c32e22eae0aa71f2d1c6e10d6212fbace50f73ab0a803949cc71f2cc + languageName: node + linkType: hard + "@types/node@npm:*, @types/node@npm:20.12.7, @types/node@npm:^20, @types/node@npm:^20.12.5": version: 20.12.7 resolution: "@types/node@npm:20.12.7" @@ -1145,6 +2284,37 @@ __metadata: languageName: node linkType: hard +"@types/pg-pool@npm:2.0.4": + version: 2.0.4 + resolution: "@types/pg-pool@npm:2.0.4" + dependencies: + "@types/pg": "npm:*" + checksum: 10c0/1c6b83e1c33c66e6b1ee11332ecf74ad393ba2a3966d5ee7ffaa40ddfe1f3cb4df224263515967d39101fa13b10c1f70da45795ca6eaeeea7d8e9edeeb58093f + languageName: node + linkType: hard + +"@types/pg@npm:*": + version: 8.11.5 + resolution: "@types/pg@npm:8.11.5" + dependencies: + "@types/node": "npm:*" + pg-protocol: "npm:*" + pg-types: "npm:^4.0.1" + checksum: 10c0/d64d183bee2df96cd0558231190ff629558e8c0fd3203b880f48a7d34b1eaea528d20c09b57b19c0939f369136e6c6941533592eadd71174be78d1ec0ca5e60e + languageName: node + linkType: hard + +"@types/pg@npm:8.6.1": + version: 8.6.1 + resolution: "@types/pg@npm:8.6.1" + dependencies: + "@types/node": "npm:*" + pg-protocol: "npm:*" + pg-types: "npm:^2.2.0" + checksum: 10c0/8d16660c9a4f050d6d5e391c59f9a62e9d377a2a6a7eb5865f8828082dbdfeab700fd707e585f42d67b29e796b32863aea5bd6d5cbb8ceda2d598da5d0c61693 + languageName: node + linkType: hard + "@types/prop-types@npm:*": version: 15.7.12 resolution: "@types/prop-types@npm:15.7.12" @@ -1213,6 +2383,13 @@ __metadata: languageName: node linkType: hard +"@types/shimmer@npm:^1.0.2": + version: 1.0.5 + resolution: "@types/shimmer@npm:1.0.5" + checksum: 10c0/bbdcfebd46732267a7f861ca2e25b8f113ca303bfb1ebf891aeeb509b0507f816f95611fa82acdd4d1d534472a54754f6be3301b2cf77659654671e3e31318ec + languageName: node + linkType: hard + "@types/triple-beam@npm:^1.3.2": version: 1.3.5 resolution: "@types/triple-beam@npm:1.3.5" @@ -1582,7 +2759,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.11.3, acorn@npm:^8.4.1, acorn@npm:^8.7.1, acorn@npm:^8.8.2": +"acorn@npm:^8.11.3, acorn@npm:^8.4.1, acorn@npm:^8.7.1, acorn@npm:^8.8.1, acorn@npm:^8.8.2": version: 8.11.3 resolution: "acorn@npm:8.11.3" bin: @@ -1935,7 +3112,7 @@ __metadata: languageName: node linkType: hard -"browserslist@npm:^4.21.10": +"browserslist@npm:^4.21.10, browserslist@npm:^4.22.2": version: 4.23.0 resolution: "browserslist@npm:4.23.0" dependencies: @@ -2127,6 +3304,13 @@ __metadata: languageName: node linkType: hard +"cjs-module-lexer@npm:^1.2.2": + version: 1.2.3 + resolution: "cjs-module-lexer@npm:1.2.3" + checksum: 10c0/0de9a9c3fad03a46804c0d38e7b712fb282584a9c7ef1ed44cae22fb71d9bb600309d66a9711ac36a596fd03422f5bb03e021e8f369c12a39fa1786ae531baab + languageName: node + linkType: hard + "clean-stack@npm:^2.0.0": version: 2.2.0 resolution: "clean-stack@npm:2.2.0" @@ -2366,6 +3550,13 @@ __metadata: languageName: node linkType: hard +"convert-source-map@npm:^2.0.0": + version: 2.0.0 + resolution: "convert-source-map@npm:2.0.0" + checksum: 10c0/8f2f7a27a1a011cc6cc88cc4da2d7d0cfa5ee0369508baae3d98c260bb3ac520691464e5bbe4ae7cdf09860c1d69ecc6f70c63c6e7c7f7e3f18ec08484dc7d9b + languageName: node + linkType: hard + "cookie-signature@npm:1.0.6": version: 1.0.6 resolution: "cookie-signature@npm:1.0.6" @@ -2504,7 +3695,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:4, debug@npm:^4, debug@npm:^4.0.0, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4": +"debug@npm:4, debug@npm:^4, debug@npm:^4.0.0, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4": version: 4.3.4 resolution: "debug@npm:4.3.4" dependencies: @@ -2612,7 +3803,7 @@ __metadata: languageName: node linkType: hard -"dotenv@npm:^16.4.5": +"dotenv@npm:^16.3.1, dotenv@npm:^16.4.5": version: 16.4.5 resolution: "dotenv@npm:16.4.5" checksum: 10c0/48d92870076832af0418b13acd6e5a5a3e83bb00df690d9812e94b24aff62b88ade955ac99a05501305b8dc8f1b0ee7638b18493deb6fe93d680e5220936292f @@ -3510,6 +4701,13 @@ __metadata: languageName: node linkType: hard +"gensync@npm:^1.0.0-beta.2": + version: 1.0.0-beta.2 + resolution: "gensync@npm:1.0.0-beta.2" + checksum: 10c0/782aba6cba65b1bb5af3b095d96249d20edbe8df32dbf4696fd49be2583faf676173bf4809386588828e4dd76a3354fcbeb577bab1c833ccd9fc4577f26103f8 + languageName: node + linkType: hard + "get-intrinsic@npm:^1.1.3, get-intrinsic@npm:^1.2.1, get-intrinsic@npm:^1.2.3, get-intrinsic@npm:^1.2.4": version: 1.2.4 resolution: "get-intrinsic@npm:1.2.4" @@ -3616,7 +4814,7 @@ __metadata: languageName: node linkType: hard -"glob@npm:^9.2.0": +"glob@npm:^9.2.0, glob@npm:^9.3.2": version: 9.3.5 resolution: "glob@npm:9.3.5" dependencies: @@ -3628,6 +4826,13 @@ __metadata: languageName: node linkType: hard +"globals@npm:^11.1.0": + version: 11.12.0 + resolution: "globals@npm:11.12.0" + checksum: 10c0/758f9f258e7b19226bd8d4af5d3b0dcf7038780fb23d82e6f98932c44e239f884847f1766e8fa9cc5635ccb3204f7fa7314d4408dd4002a5e8ea827b4018f0a1 + languageName: node + linkType: hard + "globals@npm:^14.0.0": version: 14.0.0 resolution: "globals@npm:14.0.0" @@ -3902,6 +5107,30 @@ __metadata: languageName: node linkType: hard +"import-in-the-middle@npm:1.4.2": + version: 1.4.2 + resolution: "import-in-the-middle@npm:1.4.2" + 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/499c8abc90fa5197b9f5823c221fadbb2f6a467650761151519d855c160c2a55fae5e55334634ca9fc0c42fe97b94754fb17ccd61132e8507760de6e9bf33795 + languageName: node + linkType: hard + +"import-in-the-middle@npm:1.7.1": + version: 1.7.1 + resolution: "import-in-the-middle@npm:1.7.1" + 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/992619fba916a758a1ed06cd47b6ab47f25cbab61987a887e0971cdbadff8c619a2f27b06d630f6d12ac644b9171d15538299e36355c001c58ca1b85c87a8a5a + languageName: node + linkType: hard + "imurmurhash@npm:^0.1.4": version: 0.1.4 resolution: "imurmurhash@npm:0.1.4" @@ -4320,6 +5549,19 @@ __metadata: languageName: node linkType: hard +"joi@npm:^17.3.0": + version: 17.13.0 + resolution: "joi@npm:17.13.0" + 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/27fab026a76f199fbaa5f4cf96b40539da30fdc9e1274989d8fc7b15d52e51b46b911628c924a05e061ae5c3aa00168114fb8b22fb58ca4adca3617c65620006 + languageName: node + linkType: hard + "js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0": version: 4.0.0 resolution: "js-tokens@npm:4.0.0" @@ -4345,6 +5587,15 @@ __metadata: languageName: node linkType: hard +"jsesc@npm:^2.5.1": + version: 2.5.2 + resolution: "jsesc@npm:2.5.2" + bin: + jsesc: bin/jsesc + checksum: 10c0/dbf59312e0ebf2b4405ef413ec2b25abb5f8f4d9bc5fb8d9f90381622ebca5f2af6a6aa9a8578f65903f9e33990a6dc798edd0ce5586894bf0e9e31803a1de88 + languageName: node + linkType: hard + "json-buffer@npm:3.0.1": version: 3.0.1 resolution: "json-buffer@npm:3.0.1" @@ -4396,7 +5647,7 @@ __metadata: languageName: node linkType: hard -"json5@npm:^2.2.2": +"json5@npm:^2.2.2, json5@npm:^2.2.3": version: 2.2.3 resolution: "json5@npm:2.2.3" bin: @@ -4648,6 +5899,15 @@ __metadata: languageName: node linkType: hard +"lru-cache@npm:^5.1.1": + version: 5.1.1 + resolution: "lru-cache@npm:5.1.1" + dependencies: + yallist: "npm:^3.0.2" + checksum: 10c0/89b2ef2ef45f543011e38737b8a8622a2f8998cddf0e5437174ef8f1f70a8b9d14a918ab3e232cb3ba343b7abddffa667f0b59075b2b80e6b4d63c3de6127482 + languageName: node + linkType: hard + "lru-cache@npm:^6.0.0": version: 6.0.0 resolution: "lru-cache@npm:6.0.0" @@ -4657,6 +5917,15 @@ __metadata: languageName: node linkType: hard +"magic-string@npm:0.27.0, magic-string@npm:^0.27.0": + version: 0.27.0 + resolution: "magic-string@npm:0.27.0" + dependencies: + "@jridgewell/sourcemap-codec": "npm:^1.4.13" + checksum: 10c0/cddacfea14441ca57ae8a307bc3cf90bac69efaa4138dd9a80804cffc2759bf06f32da3a293fb13eaa96334b7d45b7768a34f1d226afae25d2f05b05a3bb37d8 + languageName: node + linkType: hard + "magic-string@npm:0.30.5": version: 0.30.5 resolution: "magic-string@npm:0.30.5" @@ -4666,15 +5935,6 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.27.0": - version: 0.27.0 - resolution: "magic-string@npm:0.27.0" - dependencies: - "@jridgewell/sourcemap-codec": "npm:^1.4.13" - checksum: 10c0/cddacfea14441ca57ae8a307bc3cf90bac69efaa4138dd9a80804cffc2759bf06f32da3a293fb13eaa96334b7d45b7768a34f1d226afae25d2f05b05a3bb37d8 - languageName: node - linkType: hard - "make-error@npm:^1.1.1": version: 1.3.6 resolution: "make-error@npm:1.3.6" @@ -4948,6 +6208,13 @@ __metadata: languageName: node linkType: hard +"module-details-from-path@npm:^1.0.3": + version: 1.0.3 + resolution: "module-details-from-path@npm:1.0.3" + checksum: 10c0/3d881f3410c142e4c2b1307835a2862ba04e5b3ec6e90655614a0ee2c4b299b4c1d117fb525d2435bf436990026f18d338a197b54ad6bd36252f465c336ff423 + languageName: node + linkType: hard + "ms@npm:2.0.0": version: 2.0.0 resolution: "ms@npm:2.0.0" @@ -5179,7 +6446,7 @@ __metadata: version: 0.0.0-use.local resolution: "nextjs-13_2_0-test-application@workspace:apps/nextjs-13_2_0" dependencies: - "@sentry/nextjs": "npm:7.110.1" + "@sentry/nextjs": "npm:8.0.0-beta.4" "@types/node": "npm:20.12.7" "@types/react": "npm:18.2.79" "@types/react-dom": "npm:18.2.25" @@ -5384,6 +6651,13 @@ __metadata: languageName: node linkType: hard +"obuf@npm:~1.1.2": + version: 1.1.2 + resolution: "obuf@npm:1.1.2" + checksum: 10c0/520aaac7ea701618eacf000fc96ae458e20e13b0569845800fc582f81b386731ab22d55354b4915d58171db00e79cfcd09c1638c02f89577ef092b38c65b7d81 + languageName: node + linkType: hard + "on-exit-leak-free@npm:^2.1.0": version: 2.1.2 resolution: "on-exit-leak-free@npm:2.1.2" @@ -5443,6 +6717,17 @@ __metadata: languageName: node linkType: hard +"opentelemetry-instrumentation-fetch-node@npm:1.2.0": + version: 1.2.0 + resolution: "opentelemetry-instrumentation-fetch-node@npm:1.2.0" + dependencies: + "@opentelemetry/api": "npm:^1.6.0" + "@opentelemetry/instrumentation": "npm:^0.43.0" + "@opentelemetry/semantic-conventions": "npm:^1.17.0" + checksum: 10c0/59c1bdd568476a9204334eb19a297b4cb95f1c7000b9174511baa60ffb526ea6508f179558e56f14f808f7f213a6c60150f74a94d695f94e67ef42c4fd8aa262 + languageName: node + linkType: hard + "optionator@npm:^0.9.3": version: 0.9.3 resolution: "optionator@npm:0.9.3" @@ -5628,6 +6913,55 @@ __metadata: languageName: node linkType: hard +"pg-int8@npm:1.0.1": + version: 1.0.1 + resolution: "pg-int8@npm:1.0.1" + checksum: 10c0/be6a02d851fc2a4ae3e9de81710d861de3ba35ac927268973eb3cb618873a05b9424656df464dd43bd7dc3fc5295c3f5b3c8349494f87c7af50ec59ef14e0b98 + languageName: node + linkType: hard + +"pg-numeric@npm:1.0.2": + version: 1.0.2 + resolution: "pg-numeric@npm:1.0.2" + checksum: 10c0/43dd9884e7b52c79ddc28d2d282d7475fce8bba13452d33c04ceb2e0a65f561edf6699694e8e1c832ff9093770496363183c950dd29608e1bdd98f344b25bca9 + languageName: node + linkType: hard + +"pg-protocol@npm:*": + version: 1.6.1 + resolution: "pg-protocol@npm:1.6.1" + checksum: 10c0/7eadef4010ac0a3925c460be7332ca4098a5c6d5181725a62193fcfa800000ae6632d98d814f3989b42cf5fdc3b45e34c714a1959d29174e81e30730e140ae5f + languageName: node + linkType: hard + +"pg-types@npm:^2.2.0": + version: 2.2.0 + resolution: "pg-types@npm:2.2.0" + dependencies: + pg-int8: "npm:1.0.1" + postgres-array: "npm:~2.0.0" + postgres-bytea: "npm:~1.0.0" + postgres-date: "npm:~1.0.4" + postgres-interval: "npm:^1.1.0" + checksum: 10c0/ab3f8069a323f601cd2d2279ca8c425447dab3f9b61d933b0601d7ffc00d6200df25e26a4290b2b0783b59278198f7dd2ed03e94c4875797919605116a577c65 + languageName: node + linkType: hard + +"pg-types@npm:^4.0.1": + version: 4.0.2 + resolution: "pg-types@npm:4.0.2" + dependencies: + pg-int8: "npm:1.0.1" + pg-numeric: "npm:1.0.2" + postgres-array: "npm:~3.0.1" + postgres-bytea: "npm:~3.0.0" + postgres-date: "npm:~2.1.0" + postgres-interval: "npm:^3.0.0" + postgres-range: "npm:^1.1.1" + checksum: 10c0/780fccda2f3fa2a34e85a72e8e7dadb7d88fbe71ce88f126cb3313f333ad836d02488ec4ff3d94d0c1e5846f735d6e6c6281f8059e6b8919d2180429acaec3e2 + languageName: node + linkType: hard + "picocolors@npm:^1.0.0": version: 1.0.0 resolution: "picocolors@npm:1.0.0" @@ -5739,6 +7073,80 @@ __metadata: languageName: node linkType: hard +"postgres-array@npm:~2.0.0": + version: 2.0.0 + resolution: "postgres-array@npm:2.0.0" + checksum: 10c0/cbd56207e4141d7fbf08c86f2aebf21fa7064943d3f808ec85f442ff94b48d891e7a144cc02665fb2de5dbcb9b8e3183a2ac749959e794b4a4cfd379d7a21d08 + languageName: node + linkType: hard + +"postgres-array@npm:~3.0.1": + version: 3.0.2 + resolution: "postgres-array@npm:3.0.2" + checksum: 10c0/644aa071f67a66a59f641f8e623887d2b915bc102a32643e2aa8b54c11acd343c5ad97831ea444dd37bd4b921ba35add4aa2cb0c6b76700a8252c2324aeba5b4 + languageName: node + linkType: hard + +"postgres-bytea@npm:~1.0.0": + version: 1.0.0 + resolution: "postgres-bytea@npm:1.0.0" + checksum: 10c0/febf2364b8a8953695cac159eeb94542ead5886792a9627b97e33f6b5bb6e263bc0706ab47ec221516e79fbd6b2452d668841830fb3b49ec6c0fc29be61892ce + languageName: node + linkType: hard + +"postgres-bytea@npm:~3.0.0": + version: 3.0.0 + resolution: "postgres-bytea@npm:3.0.0" + dependencies: + obuf: "npm:~1.1.2" + checksum: 10c0/41c79cc48aa730c5ba3eda6ab989a940034f07a1f57b8f2777dce56f1b8cca16c5870582932b5b10cc605048aef9b6157e06253c871b4717cafc6d00f55376aa + languageName: node + linkType: hard + +"postgres-date@npm:~1.0.4": + version: 1.0.7 + resolution: "postgres-date@npm:1.0.7" + checksum: 10c0/0ff91fccc64003e10b767fcfeefb5eaffbc522c93aa65d5051c49b3c4ce6cb93ab091a7d22877a90ad60b8874202c6f1d0f935f38a7235ed3b258efd54b97ca9 + languageName: node + linkType: hard + +"postgres-date@npm:~2.1.0": + version: 2.1.0 + resolution: "postgres-date@npm:2.1.0" + checksum: 10c0/00a7472c10788f6b0d08d24108bf1eb80858de1bd6317740198a564918ea4a69b80c98148167b92ae688abd606483020d0de0dd3a36f3ea9a3e26bbeef3464f4 + languageName: node + linkType: hard + +"postgres-interval@npm:^1.1.0": + version: 1.2.0 + resolution: "postgres-interval@npm:1.2.0" + dependencies: + xtend: "npm:^4.0.0" + checksum: 10c0/c1734c3cb79e7f22579af0b268a463b1fa1d084e742a02a7a290c4f041e349456f3bee3b4ee0bb3f226828597f7b76deb615c1b857db9a742c45520100456272 + languageName: node + linkType: hard + +"postgres-interval@npm:^3.0.0": + version: 3.0.0 + resolution: "postgres-interval@npm:3.0.0" + checksum: 10c0/8b570b30ea37c685e26d136d34460f246f98935a1533defc4b53bb05ee23ae3dc7475b718ec7ea607a57894d8c6b4f1adf67ca9cc83a75bdacffd427d5c68de8 + languageName: node + linkType: hard + +"postgres-range@npm:^1.1.1": + version: 1.1.4 + resolution: "postgres-range@npm:1.1.4" + checksum: 10c0/254494ef81df208e0adeae6b66ce394aba37914ea14c7ece55a45fb6691b7db04bee74c825380a47c887a9f87158fd3d86f758f9cc60b76d3a38ce5aca7912e8 + languageName: node + linkType: hard + +"preact@npm:^10.19.4": + version: 10.20.2 + resolution: "preact@npm:10.20.2" + checksum: 10c0/e79c1e3ab0bab6a08dce157fc33a537487365a9093bcdc1a60612be8073a354e84648df9ee1eef5306b640461c99c9ef024720405e3e8219c03ed17e95de981e + languageName: node + linkType: hard + "prelude-ls@npm:^1.2.1": version: 1.2.1 resolution: "prelude-ls@npm:1.2.1" @@ -6018,6 +7426,17 @@ __metadata: languageName: node linkType: hard +"require-in-the-middle@npm:^7.1.1": + version: 7.3.0 + resolution: "require-in-the-middle@npm:7.3.0" + dependencies: + debug: "npm:^4.1.1" + module-details-from-path: "npm:^1.0.3" + resolve: "npm:^1.22.1" + checksum: 10c0/a8e29393b647f7109f8c07e9276123482ba19d7be4b749d247036573ef4539eaf527bdb66c2e2730b99a74e7badc36f7b6d4a75c6e5b5f798a5f304e78ade797 + languageName: node + linkType: hard + "resolve-from@npm:^4.0.0": version: 4.0.0 resolution: "resolve-from@npm:4.0.0" @@ -6025,7 +7444,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:1.22.8, resolve@npm:^1.1.6, resolve@npm:^1.10.0": +"resolve@npm:1.22.8, resolve@npm:^1.1.6, resolve@npm:^1.10.0, resolve@npm:^1.22.1": version: 1.22.8 resolution: "resolve@npm:1.22.8" dependencies: @@ -6038,7 +7457,7 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@npm%3A1.22.8#optional!builtin, resolve@patch:resolve@npm%3A^1.1.6#optional!builtin, resolve@patch:resolve@npm%3A^1.10.0#optional!builtin": +"resolve@patch:resolve@npm%3A1.22.8#optional!builtin, resolve@patch:resolve@npm%3A^1.1.6#optional!builtin, resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.1#optional!builtin": version: 1.22.8 resolution: "resolve@patch:resolve@npm%3A1.22.8#optional!builtin::version=1.22.8&hash=c3c19d" dependencies: @@ -6114,6 +7533,20 @@ __metadata: languageName: node linkType: hard +"rollup@npm:3.29.4": + version: 3.29.4 + resolution: "rollup@npm:3.29.4" + dependencies: + fsevents: "npm:~2.3.2" + dependenciesMeta: + fsevents: + optional: true + bin: + rollup: dist/bin/rollup + checksum: 10c0/65eddf84bf389ea8e4d4c1614b1c6a298d08f8ae785c0c087e723a879190c8aaddbab4aa3b8a0524551b9036750c9f8bfea27b377798accfd2ba5084ceff5aaa + languageName: node + linkType: hard + "run-async@npm:^2.4.0": version: 2.4.1 resolution: "run-async@npm:2.4.1" @@ -6242,7 +7675,16 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.3.5, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0": +"semver@npm:^6.3.1": + version: 6.3.1 + resolution: "semver@npm:6.3.1" + bin: + semver: bin/semver.js + checksum: 10c0/e3d79b609071caa78bcb6ce2ad81c7966a46a7431d9d58b8800cfa9cb6a63699b3899a0e4bcce36167a284578212d9ae6942b6929ba4aa5015c079a67751d42d + languageName: node + linkType: hard + +"semver@npm:^7.3.5, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4, semver@npm:^7.6.0": version: 7.6.0 resolution: "semver@npm:7.6.0" dependencies: @@ -6407,6 +7849,13 @@ __metadata: languageName: node linkType: hard +"shimmer@npm:^1.2.1": + version: 1.2.1 + resolution: "shimmer@npm:1.2.1" + checksum: 10c0/ae8b27c389db2a00acfc8da90240f11577685a8f3e40008f826a3bea8b4f3b3ecd305c26be024b4a0fd3b123d132c1569d6e238097960a9a543b6c60760fb46a + languageName: node + linkType: hard + "side-channel@npm:^1.0.4": version: 1.0.6 resolution: "side-channel@npm:1.0.6" @@ -6891,6 +8340,13 @@ __metadata: languageName: node linkType: hard +"to-fast-properties@npm:^2.0.0": + version: 2.0.0 + resolution: "to-fast-properties@npm:2.0.0" + checksum: 10c0/b214d21dbfb4bce3452b6244b336806ffea9c05297148d32ebb428d5c43ce7545bdfc65a1ceb58c9ef4376a65c0cb2854d645f33961658b3e3b4f84910ddcdd7 + languageName: node + linkType: hard + "to-regex-range@npm:^5.0.1": version: 5.0.1 resolution: "to-regex-range@npm:5.0.1" @@ -7266,6 +8722,18 @@ __metadata: languageName: node linkType: hard +"unplugin@npm:1.0.1": + version: 1.0.1 + resolution: "unplugin@npm:1.0.1" + dependencies: + acorn: "npm:^8.8.1" + chokidar: "npm:^3.5.3" + webpack-sources: "npm:^3.2.3" + webpack-virtual-modules: "npm:^0.5.0" + checksum: 10c0/7d59b5a28abc1cdbd6356a10f273d1266f59c3be083ab0e659a37d02d047d5df1b435e0f40f5ec97517e8fc910d314592f0d197ccceb75ef47c71c1898ec7a05 + languageName: node + linkType: hard + "update-browserslist-db@npm:^1.0.13": version: 1.0.13 resolution: "update-browserslist-db@npm:1.0.13" @@ -7303,6 +8771,15 @@ __metadata: languageName: node linkType: hard +"uuid@npm:^9.0.0": + version: 9.0.1 + resolution: "uuid@npm:9.0.1" + bin: + uuid: dist/bin/uuid + checksum: 10c0/1607dd32ac7fc22f2d8f77051e6a64845c9bce5cd3dd8aa0070c074ec73e666a1f63c7b4e0f4bf2bc8b9d59dc85a15e17807446d9d2b17c8485fbc2147b27f9b + languageName: node + linkType: hard + "v8-compile-cache-lib@npm:^3.0.1": version: 3.0.1 resolution: "v8-compile-cache-lib@npm:3.0.1" @@ -7367,6 +8844,13 @@ __metadata: languageName: node linkType: hard +"webpack-virtual-modules@npm:^0.5.0": + version: 0.5.0 + resolution: "webpack-virtual-modules@npm:0.5.0" + checksum: 10c0/0742e069cd49d91ccd0b59431b3666903d321582c1b1062fa6bdae005c3538af55ff8787ea5eafbf72662f3496d3a879e2c705d55ca0af8283548a925be18484 + languageName: node + linkType: hard + "webpack@npm:5.90.1": version: 5.90.1 resolution: "webpack@npm:5.90.1" @@ -7550,6 +9034,13 @@ __metadata: languageName: node linkType: hard +"yallist@npm:^3.0.2": + version: 3.1.1 + resolution: "yallist@npm:3.1.1" + checksum: 10c0/c66a5c46bc89af1625476f7f0f2ec3653c1a1791d2f9407cfb4c2ba812a1e1c9941416d71ba9719876530e3340a99925f697142989371b72d93b9ee628afd8c1 + languageName: node + linkType: hard + "yallist@npm:^4.0.0": version: 4.0.0 resolution: "yallist@npm:4.0.0"