Investigate the usages of SpanContext.create with invalid ids, but useful flags and trace state. #2751
Labels
priority:p1
Critical issues and bugs. Highest priority; breaking API changes.
Milestone
When implementing #2728 , we uncovered a strange use of the SpanContext.create where tests were passing in invalid span/trace ids, but useful trace flags and trace state. This may just be a testing usage at the moment, but before removing it, we need to research whether it is a valid use-case, or just a testing shortcut.
The outcome of this story should either be
a) document this use and why, potentially adding an additional creational method to support it
b) remove this usage from the tests and make the SpanContext.create return a fully INVALID SpanContext if the span id and trace id are both invalid.
The text was updated successfully, but these errors were encountered: