func (t *Tracer) Finish(root bool) {
	for _, span := range t.spans {
		span.Finish()
	}

	if root {
		t.root.Finish()
	}
}
func (t *Tracer) Finish(root bool) {
	for _, span := range t.spans {
		span.Finish()
	}

	if root {
		t.root.Finish()
	}
}
func ( t * Tracer ) Finish ( root bool ) { for _ , span := range t . spans { span . Finish ( ) } if root { t . root . Finish ( ) } }
// Finish will finish all leftover spans and the root span if requested.
Finish will finish all leftover spans and the root span if requested .