Skip to content

tracing: parent span should aggregate durations for finished child spans #80391

@adityamaru

Description

@adityamaru

A span should maintain a mapping from span.Name : span.Duration for all of its child spans. This mapping should be updated by the child span on Finish() if the span is operating in a RecordingVerbose or RecordingStructured mode as checked here -

case RecordingVerbose:
.

This change is motivated by #80388 which requires an easy way to collect all the child operations and their durations to then analyze and render.

Epic: CRDB-10262

Jira issue: CRDB-15734

Epic CRDB-10262

Metadata

Metadata

Assignees

Labels

C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions