2024-11-19 14:38:12 +05:30
|
|
|
package model
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
type SpanItemV2 struct {
|
|
|
|
|
TimeUnixNano time.Time `ch:"timestamp"`
|
|
|
|
|
DurationNano uint64 `ch:"duration_nano"`
|
|
|
|
|
SpanID string `ch:"span_id"`
|
|
|
|
|
TraceID string `ch:"trace_id"`
|
|
|
|
|
HasError bool `ch:"has_error"`
|
|
|
|
|
Kind int8 `ch:"kind"`
|
|
|
|
|
ServiceName string `ch:"resource_string_service$$name"`
|
|
|
|
|
Name string `ch:"name"`
|
|
|
|
|
References string `ch:"references"`
|
|
|
|
|
Attributes_string map[string]string `ch:"attributes_string"`
|
|
|
|
|
Attributes_number map[string]float64 `ch:"attributes_number"`
|
|
|
|
|
Attributes_bool map[string]bool `ch:"attributes_bool"`
|
2024-11-20 23:35:44 +05:30
|
|
|
Resources_string map[string]string `ch:"resources_string"`
|
2024-11-19 14:38:12 +05:30
|
|
|
Events []string `ch:"events"`
|
|
|
|
|
StatusMessage string `ch:"status_message"`
|
|
|
|
|
StatusCodeString string `ch:"status_code_string"`
|
|
|
|
|
SpanKind string `ch:"kind_string"`
|
2025-01-24 00:16:38 +05:30
|
|
|
ParentSpanId string `ch:"parent_span_id"`
|
2024-11-19 14:38:12 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type TraceSummary struct {
|
|
|
|
|
TraceID string `ch:"trace_id"`
|
|
|
|
|
Start time.Time `ch:"start"`
|
|
|
|
|
End time.Time `ch:"end"`
|
|
|
|
|
NumSpans uint64 `ch:"num_spans"`
|
|
|
|
|
}
|