Consider using Context as the unique way to specify parenthood #510
Closed
Description
At this moment, CorrelationContext
and Span
instances being created can explicitly specify their parent:
spanBuilder.setParent(anotherSpan);
spanBuilder.setParent(someSpanContext);
As part of OTEP 66, we could remove these and have a single one specifying Context
:
// Decide the parent of whatever it is in the specified context.
spanBuilder.setParent(context);