|
4 | 4 | "event_id": "[[ID1]]", |
5 | 5 | "sdk": { |
6 | 6 | "name": "sentry.javascript.node", |
7 | | - "version": "7.110.1" |
| 7 | + "version": "8.0.0-beta.2" |
8 | 8 | }, |
9 | 9 | "sent_at": "[[ISODateString]]", |
10 | 10 | "trace": { |
|
58 | 58 | "version": "v20.12.1" |
59 | 59 | }, |
60 | 60 | "trace": { |
61 | | - "data": { |
62 | | - "sentry.op": "http.server", |
63 | | - "sentry.origin": "auto.http.node.tracingHandler", |
64 | | - "sentry.sample_rate": 1, |
65 | | - "sentry.source": "route" |
66 | | - }, |
67 | | - "op": "http.server", |
68 | | - "origin": "auto.http.node.tracingHandler", |
69 | 61 | "span_id": "[[ID3]]", |
70 | 62 | "trace_id": "[[ID2]]" |
71 | 63 | } |
|
166 | 158 | "colno": 12, |
167 | 159 | "context_line": " return __awaiter(this, void 0, void 0, function () {", |
168 | 160 | "filename": "[[FILENAME3]]", |
169 | | - "function": "<anonymous>", |
| 161 | + "function": "?", |
170 | 162 | "in_app": true, |
171 | | - "lineno": 86, |
| 163 | + "lineno": 84, |
172 | 164 | "module": "app", |
173 | 165 | "post_context": [ |
174 | 166 | " var exceptionId;", |
|
180 | 172 | " case 1:" |
181 | 173 | ], |
182 | 174 | "pre_context": [ |
183 | | - "});", |
184 | | - "app.use(Sentry.Handlers.requestHandler());", |
185 | | - "app.use(Sentry.Handlers.tracingHandler());", |
| 175 | + "var app = (0, express_1.default)();", |
| 176 | + "var port = 3030;", |
| 177 | + "Sentry.setupExpressErrorHandler(app);", |
186 | 178 | "app.get('/test-success', function (req, res) {", |
187 | 179 | " res.send({ version: 'v1' });", |
188 | 180 | "});", |
|
226 | 218 | "colno": 71, |
227 | 219 | "context_line": " step((generator = generator.apply(thisArg, _arguments || [])).next());", |
228 | 220 | "filename": "[[FILENAME3]]", |
229 | | - "function": "<anonymous>", |
| 221 | + "function": "?", |
230 | 222 | "in_app": true, |
231 | 223 | "lineno": 31, |
232 | 224 | "module": "app", |
|
307 | 299 | "colno": 59, |
308 | 300 | "context_line": " exceptionId = Sentry.captureException(new Error('This is an error'));", |
309 | 301 | "filename": "[[FILENAME3]]", |
310 | | - "function": "<anonymous>", |
| 302 | + "function": "?", |
311 | 303 | "in_app": true, |
312 | | - "lineno": 91, |
| 304 | + "lineno": 89, |
313 | 305 | "module": "app", |
314 | 306 | "post_context": [ |
315 | 307 | " return [4 /*yield*/, Sentry.flush(2000)];", |
|
347 | 339 | "content-type": "1.0.5", |
348 | 340 | "cookie": "0.6.0", |
349 | 341 | "cookie-signature": "1.0.6", |
| 342 | + "debug": "4.3.4", |
350 | 343 | "define-data-property": "1.1.4", |
351 | 344 | "depd": "2.0.0", |
352 | 345 | "destroy": "1.2.0", |
|
370 | 363 | "hasown": "2.0.2", |
371 | 364 | "http-errors": "2.0.0", |
372 | 365 | "iconv-lite": "0.4.24", |
| 366 | + "import-in-the-middle": "1.7.1", |
373 | 367 | "inherits": "2.0.4", |
374 | 368 | "ipaddr.js": "1.9.1", |
| 369 | + "is-core-module": "2.13.1", |
375 | 370 | "media-typer": "0.3.0", |
376 | 371 | "merge-descriptors": "1.0.1", |
377 | 372 | "methods": "1.1.2", |
378 | 373 | "mime": "1.6.0", |
379 | 374 | "mime-db": "1.52.0", |
380 | 375 | "mime-types": "2.1.35", |
| 376 | + "module-details-from-path": "1.0.3", |
381 | 377 | "ms": "2.1.3", |
382 | 378 | "negotiator": "0.6.3", |
383 | 379 | "object-inspect": "1.13.1", |
384 | 380 | "on-finished": "2.4.1", |
| 381 | + "opentelemetry-instrumentation-fetch-node": "1.2.0", |
385 | 382 | "parseurl": "1.3.3", |
386 | 383 | "path-to-regexp": "0.1.7", |
387 | 384 | "proxy-addr": "2.0.7", |
388 | 385 | "qs": "6.11.0", |
389 | 386 | "range-parser": "1.2.1", |
390 | 387 | "raw-body": "2.5.2", |
| 388 | + "require-in-the-middle": "7.3.0", |
| 389 | + "resolve": "1.22.8", |
391 | 390 | "safe-buffer": "5.2.1", |
392 | 391 | "safer-buffer": "2.1.2", |
| 392 | + "semver": "7.6.0", |
393 | 393 | "send": "0.18.0", |
394 | 394 | "serve-static": "1.15.0", |
395 | 395 | "set-function-length": "1.2.2", |
396 | 396 | "setprototypeof": "1.2.0", |
| 397 | + "shimmer": "1.2.1", |
397 | 398 | "side-channel": "1.0.6", |
398 | 399 | "statuses": "2.0.1", |
| 400 | + "supports-color": "5.5.0", |
399 | 401 | "toidentifier": "1.0.1", |
400 | 402 | "type-is": "1.6.18", |
401 | 403 | "unpipe": "1.0.0", |
402 | 404 | "utils-merge": "1.0.1", |
403 | | - "vary": "1.1.2" |
| 405 | + "vary": "1.1.2", |
| 406 | + "yallist": "4.0.0" |
404 | 407 | }, |
405 | 408 | "platform": "node", |
406 | 409 | "request": { |
|
414 | 417 | "connection": "keep-alive", |
415 | 418 | "cookie": "sc=2pGHpwfeQfLDqPcR9gwpxKl0DHTlOKYq", |
416 | 419 | "host": "localhost:3030", |
417 | | - "if-none-match": "[[W/entityTagValue]]", |
418 | 420 | "sec-ch-ua": "\"Google Chrome\";v=\"123\", \"Not:A-Brand\";v=\"8\", \"Chromium\";v=\"123\"", |
419 | 421 | "sec-ch-ua-mobile": "?0", |
420 | 422 | "sec-ch-ua-platform": "\"macOS\"", |
|
426 | 428 | "user-agent": "[[user-agent]]" |
427 | 429 | }, |
428 | 430 | "method": "GET", |
429 | | - "query_string": {}, |
430 | 431 | "url": "http://localhost:3030/test-error" |
431 | 432 | }, |
432 | 433 | "sdk": { |
|
437 | 438 | "RequestData", |
438 | 439 | "Console", |
439 | 440 | "Http", |
440 | | - "Undici", |
| 441 | + "NodeFetch", |
441 | 442 | "OnUncaughtException", |
442 | 443 | "OnUnhandledRejection", |
443 | 444 | "ContextLines", |
444 | | - "LocalVariables", |
| 445 | + "LocalVariablesAsync", |
445 | 446 | "Context", |
446 | 447 | "Modules", |
447 | | - "Express" |
| 448 | + "Express", |
| 449 | + "Fastify", |
| 450 | + "Graphql", |
| 451 | + "Mongo", |
| 452 | + "Mongoose", |
| 453 | + "Mysql", |
| 454 | + "Mysql2", |
| 455 | + "Postgres", |
| 456 | + "Nest", |
| 457 | + "Hapi", |
| 458 | + "Koa" |
448 | 459 | ], |
449 | 460 | "name": "sentry.javascript.node", |
450 | 461 | "packages": [ |
451 | 462 | { |
452 | 463 | "name": "npm:@sentry/node", |
453 | | - "version": "7.110.1" |
| 464 | + "version": "8.0.0-beta.2" |
454 | 465 | } |
455 | 466 | ], |
456 | | - "version": "7.110.1" |
| 467 | + "version": "8.0.0-beta.2" |
457 | 468 | }, |
458 | 469 | "server_name": "JH0G94X29Q.local", |
459 | | - "tags": { |
460 | | - "transaction": "GET /test-error" |
461 | | - }, |
462 | 470 | "timestamp": "[[timestamp]]", |
463 | 471 | "transaction": "GET /test-error" |
464 | 472 | } |
|
0 commit comments