mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
4e899d48cf
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
37 lines
967 B
Text
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": ""
|
|
}
|
|
]
|
|
}
|