Context Interaction Section Makes it Seem like Context Should Be Mutable #2624
Labels
area:api
Cross language API specification issue
[label deprecated] triaged-accepted
[label deprecated] Issue triaged and accepted by OTel community, can proceed with creating a PR
spec:context
Related to the specification/context directory
spec:trace
Related to the specification/trace directory
What are you trying to achieve?
Was trying to implement the 2nd part of the Context Interaction section for PHP.
What did you expect to see?
I expected the spec to call out that a new context would need to be created with the span that was being passed.
Instead, the spec seemed to imply that the current context should be mutated with the span that was being passed.
Additional context.
Here is that spec language that threw me off
"Set the currently active span to the implicit context. This is equivalent to getting the implicit context, then inserting the Span to the context."
Link to this section of the doc
Fwiw I'm not sure how the spec words similar discussions of context mutability elsewhere, so if this is just being consistent with that (and me being ignorant of those parts) that seems totally fair to me (and this can be closed)
The text was updated successfully, but these errors were encountered: