MCPcopy
hub / github.com/grafana/tempo / finalizeTrace

Function finalizeTrace

tempodb/encoding/vparquet4/schema.go:581–584  ·  view source on GitHub ↗

finalizeTrace augments and optimized the trace by calculating service stats, nested set model bounds and removing redundant scope spans and resource spans. The function returns the modified trace as well as a boolean indicating whether the trace is a connected graph.

(trace *Trace)

Source from the content-addressed store, hash-verified

579// and removing redundant scope spans and resource spans. The function returns the modified trace as well
580// as a boolean indicating whether the trace is a connected graph.
581func finalizeTrace(trace *Trace) (*Trace, bool) {
582 rebatchTrace(trace)
583 return trace, assignNestedSetModelBoundsAndServiceStats(trace)
584}
585
586func instrumentationScopeToParquet(s *v1.InstrumentationScope, ss *InstrumentationScope) {
587 if s == nil {

Callers 2

ResultMethod · 0.70

Calls 2

rebatchTraceFunction · 0.70

Tested by

no test coverage detected