mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-06-04 11:25:52 +08:00

* perf: introduce smart trace detail algorithm * fix: remove hardcoded levels and handle null levels * feat: add support for broken trees * feat: use spanLimit env variable * fix: handle missing root span * add root spanId and root name * use permanent table * add kind, events and tagmap support * fix query formation * increase context timeout to 600s * perf improvement * handle error * return tableName as response to query * support multiple queries tableName * perf: improve memory and latency * feat: add getSubTree custom func and smart trace detail algo to ee * fix: create new functions for ee * chore: refactor codebase * chore: refactor frontend code Co-authored-by: Ankit Nayan <ankit@signoz.io> Co-authored-by: Palash Gupta <palashgdev@gmail.com>
23 lines
865 B
Go
23 lines
865 B
Go
package model
|
|
|
|
type SpanForTraceDetails struct {
|
|
TimeUnixNano uint64 `json:"timestamp"`
|
|
SpanID string `json:"spanID"`
|
|
TraceID string `json:"traceID"`
|
|
ParentID string `json:"parentID"`
|
|
ParentSpan *SpanForTraceDetails `json:"parentSpan"`
|
|
ServiceName string `json:"serviceName"`
|
|
Name string `json:"name"`
|
|
Kind int32 `json:"kind"`
|
|
DurationNano int64 `json:"durationNano"`
|
|
TagMap map[string]string `json:"tagMap"`
|
|
Events []string `json:"event"`
|
|
HasError bool `json:"hasError"`
|
|
Children []*SpanForTraceDetails `json:"children"`
|
|
}
|
|
|
|
type GetSpansSubQueryDBResponse struct {
|
|
SpanID string `ch:"spanID"`
|
|
TraceID string `ch:"traceID"`
|
|
}
|