1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-18 21:35:31 -05:00
denoland-deno/tests/specs/cli/otel_basic/uncaught.out
snek 4e899d48cf
fix: otel resiliency (#26857)
Improving the breadth of collected data, and ensuring that the collected
data is more likely to be successfully reported.

- Use `log` crate in more places
- Hook up `log` crate to otel
- Switch to process-wide otel processors
- Handle places that use `process::exit`

Also adds a more robust testing framework, with a deterministic tracing
setting.

Refs: https://github.com/denoland/deno/issues/26852
2024-11-14 12:16:28 +00:00

37 lines
967 B
Text

error: Uncaught (in promise) Error: uncaught
throw new Error("uncaught");
^
at file:///[WILDCARD]/tests/specs/cli/otel_basic/uncaught.ts:2:7
{
"spans": [],
"logs": [
{
"timeUnixNano": "0",
"observedTimeUnixNano": "[WILDCARD]",
"severityNumber": 9,
"severityText": "INFO",
"body": {
"stringValue": "log 1\n"
},
"attributes": [],
"droppedAttributesCount": 0,
"flags": 0,
"traceId": "",
"spanId": ""
},
{
"timeUnixNano": "0",
"observedTimeUnixNano": "[WILDCARD]",
"severityNumber": 17,
"severityText": "ERROR",
"body": {
"stringValue": "error: Uncaught (in promise) Error: uncaught\nthrow new Error(\"uncaught\");\n ^\n at file:///[WILDCARD]/tests/specs/cli/otel_basic/uncaught.ts:2:7"
},
"attributes": [],
"droppedAttributesCount": 0,
"flags": 0,
"traceId": "",
"spanId": ""
}
]
}