Skip to content

Clarify documentation for current_root_span #9758

Closed
@timmc-edx

Description

@timmc-edx

The documentation for ddtrace.Tracer.current_root_span is ambiguous regarding whether this is A) the root span of the entire trace, B) the root span of the current process, or C) the service entry span:

  • « Returns the root span of the current execution. » -- implies B
  • « useful for attaching information related to the trace as a whole » -- implies A

Reading the source code, this line implies B, at least to my eyes.

It would be great if the docs could be made clear on this point.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions