mirror of
https://github.com/denoland/deno.git
synced 2024-12-20 22:34:46 -05:00
8ea95c34b5
Add basic trace to Deno.serve. Also updates a bit of the testing infra to make it easier to deal with.
134 lines
3 KiB
Text
134 lines
3 KiB
Text
{
|
|
"spans": [
|
|
{
|
|
"traceId": "00000000000000000000000000000001",
|
|
"spanId": "0000000000000002",
|
|
"traceState": "",
|
|
"parentSpanId": "",
|
|
"flags": 1,
|
|
"name": "GET",
|
|
"kind": 1,
|
|
"startTimeUnixNano": "[WILDCARD]",
|
|
"endTimeUnixNano": "[WILDCARD]",
|
|
"attributes": [
|
|
{
|
|
"key": "http.request.method",
|
|
"value": {
|
|
"stringValue": "GET"
|
|
}
|
|
},
|
|
{
|
|
"key": "url.full",
|
|
"value": {
|
|
"stringValue": "http://localhost:[WILDCARD]/"
|
|
}
|
|
},
|
|
{
|
|
"key": "url.scheme",
|
|
"value": {
|
|
"stringValue": "http"
|
|
}
|
|
},
|
|
{
|
|
"key": "url.path",
|
|
"value": {
|
|
"stringValue": "/"
|
|
}
|
|
},
|
|
{
|
|
"key": "url.query",
|
|
"value": {
|
|
"stringValue": ""
|
|
}
|
|
},
|
|
{
|
|
"key": "http.response.status_code",
|
|
"value": {
|
|
"stringValue": "200"
|
|
}
|
|
}
|
|
],
|
|
"droppedAttributesCount": 0,
|
|
"events": [],
|
|
"droppedEventsCount": 0,
|
|
"links": [],
|
|
"droppedLinksCount": 0,
|
|
"status": {
|
|
"message": "",
|
|
"code": 0
|
|
}
|
|
},
|
|
{
|
|
"traceId": "00000000000000000000000000000001",
|
|
"spanId": "1000000000000001",
|
|
"traceState": "",
|
|
"parentSpanId": "0000000000000002",
|
|
"flags": 1,
|
|
"name": "outer span",
|
|
"kind": 1,
|
|
"startTimeUnixNano": "[WILDCARD]",
|
|
"endTimeUnixNano": "[WILDCARD]",
|
|
"attributes": [],
|
|
"droppedAttributesCount": 0,
|
|
"events": [],
|
|
"droppedEventsCount": 0,
|
|
"links": [],
|
|
"droppedLinksCount": 0,
|
|
"status": {
|
|
"message": "",
|
|
"code": 0
|
|
}
|
|
},
|
|
{
|
|
"traceId": "00000000000000000000000000000001",
|
|
"spanId": "1000000000000002",
|
|
"traceState": "",
|
|
"parentSpanId": "1000000000000001",
|
|
"flags": 1,
|
|
"name": "inner 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": "00000000000000000000000000000001",
|
|
"spanId": "1000000000000002"
|
|
},
|
|
{
|
|
"timeUnixNano": "0",
|
|
"observedTimeUnixNano": "[WILDCARD]",
|
|
"severityNumber": 9,
|
|
"severityText": "INFO",
|
|
"body": {
|
|
"stringValue": "log 2\n"
|
|
},
|
|
"attributes": [],
|
|
"droppedAttributesCount": 0,
|
|
"flags": 1,
|
|
"traceId": "00000000000000000000000000000001",
|
|
"spanId": "1000000000000002"
|
|
}
|
|
]
|
|
}
|