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

Function finalizeTrace

tempodb/encoding/vparquet5/schema.go:570–573  ·  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

568// and removing redundant scope spans and resource spans. The function returns the modified trace as well
569// as a boolean indicating whether the trace is a connected graph.
570func finalizeTrace(trace *Trace) (*Trace, bool) {
571 rebatchTrace(trace)
572 return trace, assignNestedSetModelBoundsAndServiceStats(trace)
573}
574
575func instrumentationScopeToParquet(s *v1.InstrumentationScope, ss *InstrumentationScope) {
576 if s == nil {

Callers 2

ResultMethod · 0.70

Calls 2

rebatchTraceFunction · 0.70

Tested by

no test coverage detected