mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -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
76 lines
1.8 KiB
Text
76 lines
1.8 KiB
Text
{
|
|
"spans": [
|
|
{
|
|
"traceId": "00000000000000000000000000000002",
|
|
"spanId": "0000000000000003",
|
|
"traceState": "",
|
|
"parentSpanId": "0000000000000001",
|
|
"flags": 1,
|
|
"name": "inner span",
|
|
"kind": 1,
|
|
"startTimeUnixNano": "[WILDCARD]",
|
|
"endTimeUnixNano": "[WILDCARD]",
|
|
"attributes": [],
|
|
"droppedAttributesCount": 0,
|
|
"events": [],
|
|
"droppedEventsCount": 0,
|
|
"links": [],
|
|
"droppedLinksCount": 0,
|
|
"status": {
|
|
"message": "",
|
|
"code": 0
|
|
}
|
|
},
|
|
{
|
|
"traceId": "00000000000000000000000000000002",
|
|
"spanId": "0000000000000001",
|
|
"traceState": "",
|
|
"parentSpanId": "",
|
|
"flags": 1,
|
|
"name": "outer span",
|
|
"kind": 1,
|
|
"startTimeUnixNano": "[WILDCARD]",
|
|
"endTimeUnixNano": "[WILDCARD]",
|
|
"attributes": [],
|
|
"droppedAttributesCount": 0,
|
|
"events": [],
|
|
"droppedEventsCount": 0,
|
|
"links": [],
|
|
"droppedLinksCount": 0,
|
|
"status": {
|
|
"message": "",
|
|
"code": 0
|
|
}
|
|
}
|
|
],
|
|
"logs": [
|
|
{
|
|
"timeUnixNano": "0",
|
|
"observedTimeUnixNano": "[WILDCARD]",
|
|
"severityNumber": 9,
|
|
"severityText": "INFO",
|
|
"body": {
|
|
"stringValue": "log 1\n"
|
|
},
|
|
"attributes": [],
|
|
"droppedAttributesCount": 0,
|
|
"flags": 1,
|
|
"traceId": "00000000000000000000000000000002",
|
|
"spanId": "0000000000000003"
|
|
},
|
|
{
|
|
"timeUnixNano": "0",
|
|
"observedTimeUnixNano": "[WILDCARD]",
|
|
"severityNumber": 9,
|
|
"severityText": "INFO",
|
|
"body": {
|
|
"stringValue": "log 2\n"
|
|
},
|
|
"attributes": [],
|
|
"droppedAttributesCount": 0,
|
|
"flags": 1,
|
|
"traceId": "00000000000000000000000000000002",
|
|
"spanId": "0000000000000003"
|
|
}
|
|
]
|
|
}
|