summaryrefslogtreecommitdiff
path: root/tests/specs/cli/otel_basic/basic.out
diff options
context:
space:
mode:
authorsnek <snek@deno.com>2024-11-14 13:16:28 +0100
committerGitHub <noreply@github.com>2024-11-14 12:16:28 +0000
commit4e899d48cffa95617266dd8f9aef54603a87ad82 (patch)
treeec667f58ccb4126ecad38bc4600d9dd8dc372ca5 /tests/specs/cli/otel_basic/basic.out
parentcb107a762fb903973e0d0c2e4481baf2c0bc13b8 (diff)
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
Diffstat (limited to 'tests/specs/cli/otel_basic/basic.out')
-rw-r--r--tests/specs/cli/otel_basic/basic.out76
1 files changed, 76 insertions, 0 deletions
diff --git a/tests/specs/cli/otel_basic/basic.out b/tests/specs/cli/otel_basic/basic.out
new file mode 100644
index 000000000..3f0554f96
--- /dev/null
+++ b/tests/specs/cli/otel_basic/basic.out
@@ -0,0 +1,76 @@
+{
+ "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"
+ }
+ ]
+}