Documentation
¶
Overview ¶
Package diff computes a structural/timing comparison between two sessions' spans. It is shared by the HTTP API (/api/diff) and the MCP diff_sessions tool. JSON tags match the original API wire format.
Index ¶
Constants ¶
View Source
const ZeroParent = "0000000000000000"
ZeroParent is the all-zero parent span id some exporters use for roots.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
Baseline SessionInfo `json:"baseline"`
Compare SessionInfo `json:"compare"`
Summary Summary `json:"summary"`
Spans []Span `json:"spans"`
BaselineSpans []*storage.Span `json:"baseline_spans"`
CompareSpans []*storage.Span `json:"compare_spans"`
}
type SessionInfo ¶
type Span ¶
type Span struct {
Name string `json:"name"`
ServiceName string `json:"service_name"`
Status string `json:"status"` // added|removed|changed|unchanged
BaselineDurationNs int64 `json:"baseline_duration_ns"`
CompareDurationNs int64 `json:"compare_duration_ns"`
DeltaPct float64 `json:"delta_pct"`
Depth int `json:"depth"`
}
Span is one (service, operation) row in a diff.
Click to show internal directories.
Click to hide internal directories.