SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`utils/spanToTree should return a single tree on valid trace data 1`] = `
{
"missingSpanTree": [],
"spanTree": [
{
"childReferences": [
{
"RefType": "CHILD_OF",
"SpanId": "",
"TraceId": "0000000000000000span_1",
},
],
"children": [
{
"childReferences": [
{
"RefType": "CHILD_OF",
"SpanId": "span_1",
"TraceId": "0000000000000000span_1",
},
],
"children": [
{
"childReferences": [
{
"RefType": "CHILD_OF",
"SpanId": "span_2",
"TraceId": "0000000000000000span_1",
},
],
"children": [],
"event": [
{
"attributeMap": {
"event": "HTTP request received S3",
"level": "info",
"method": "GET",
"url": "/dispatch?customer=392&nonse=0.015296363321630757",
},
"timeUnixNano": 1657275433246142000,
},
],
"hasError": false,
"id": "span_3",
"isProcessed": true,
"name": "HTTP GET SPAN 3",
"nonChildReferences": [],
"serviceColour": "",
"serviceName": "frontend",
"spanKind": "Lorem Ipsum2",
"startTime": 1657275433246,
"statusCodeString": "Unset2",
"statusMessage": "Server2",
"tags": [
{
"key": "host.name.span3",
"value": "span_3",
},
],
"time": 683273000,
"value": 683273000,
},
],
"event": [
{
"attributeMap": {
"event": "HTTP request received S2",
"level": "info",
"method": "GET",
"url": "/dispatch?customer=392&nonse=0.015296363321630757",
},
"timeUnixNano": 1657275433246142000,
},
],
"hasError": false,
"id": "span_2",
"isProcessed": true,
"name": "HTTP GET SPAN 2",
"nonChildReferences": [],
"serviceColour": "",
"serviceName": "frontend",
"spanKind": "Lorem Ipsum1",
"startTime": 1657275433246,
"statusCodeString": "Unset1",
"statusMessage": "Server1",
"tags": [
{
"key": "host.name.span2",
"value": "span_2",
},
],
"time": 683273000,
"value": 683273000,
},
],
"event": [
{
"attributeMap": {
"event": "HTTP request received S1",
"level": "info",
"method": "GET",
"url": "/dispatch?customer=392&nonse=0.015296363321630757",
},
"timeUnixNano": 1657275433246142000,
},
],
"hasError": false,
"id": "span_1",
"name": "HTTP GET SPAN 1",
"nonChildReferences": [],
"serviceColour": "",
"serviceName": "frontend",
"spanKind": "Lorem Ipsum",
"startTime": 1657275433246,
"statusCodeString": "Unset",
"statusMessage": "Server",
"tags": [
{
"key": "host.name.span1",
"value": "span_1",
},
],
"time": 683273000,
"value": 683273000,
},
],
}
`;
exports[`utils/spanToTree should return a single tree on valid trace data 2`] = `
{
"missingSpanTree": [
{
"children": [
{
"childReferences": [
{
"RefType": "CHILD_OF",
"SpanId": "span_2",
"TraceId": "0000000000000000span_1",
},
],
"children": [],
"event": [
{
"attributeMap": {
"event": "HTTP request received S3",
"level": "info",
"method": "GET",
"url": "/dispatch?customer=392&nonse=0.015296363321630757",
},
"timeUnixNano": 1657275433246142000,
},
],
"hasError": false,
"id": "span_3",
"isProcessed": true,
"name": "HTTP GET SPAN 3",
"nonChildReferences": [],
"serviceColour": "",
"serviceName": "frontend",
"spanKind": "Lorem Ipsum2",
"startTime": 1657275433246,
"statusCodeString": "Unset2",
"statusMessage": "Server2",
"tags": [
{
"key": "host.name.span3",
"value": "span_3",
},
],
"time": 683273000,
"value": 683273000,
},
],
"id": "span_2",
"isMissing": true,
"name": "Missing Span (span_2)",
"serviceColour": "",
"serviceName": "",
"spanKind": "",
"startTime": null,
"statusCodeString": "",
"statusMessage": "",
"tags": [],
"time": null,
"value": null,
},
],
"spanTree": [
{
"childReferences": [
{
"RefType": "CHILD_OF",
"SpanId": "",
"TraceId": "0000000000000000span_1",
},
],
"children": [],
"event": [
{
"attributeMap": {
"event": "HTTP request received S1",
"level": "info",
"method": "GET",
"url": "/dispatch?customer=392&nonse=0.015296363321630757",
},
"timeUnixNano": 1657275433246142000,
},
],
"hasError": false,
"id": "span_1",
"name": "HTTP GET SPAN 1",
"nonChildReferences": [],
"serviceColour": "",
"serviceName": "frontend",
"spanKind": "Lorem Ipsum",
"startTime": 1657275433246,
"statusCodeString": "Unset",
"statusMessage": "Server",
"tags": [
{
"key": "host.name.span1",
"value": "span_1",
},
],
"time": 683273000,
"value": 683273000,
},
],
}
`;