-
Notifications
You must be signed in to change notification settings - Fork 517
SpanBuilder should not allow with_status #2745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Used by (not exactly the method but I assume you are referring to the abilty to set the status field in |
Yes, it is similar to #2753 |
Let's keep this issue in a blocked state until then? IIRC we removed some API tracing-opentelemetry used and had to add it back. Want to avoid that until we have a good replacement in place |
Yes okay to keep them now to not break |
The function @TommyCpp highlighted in The underlying pattern is that OTel's Usages1. When a new span is created ( 2. When span values are recorded on an existing span via 3. When event data is added to an existing span via AlternativesDoesn't look too difficult to change the tokio-tracing side to avoid the need to mutate the ... modify I've hacked this up and its pretty straightforward if kind of a noisy change. Not sure there's much value in doing this at this point, though, as @bantonsson 's changes to make the context activation work properly will necessarily change this anyway! |
Actually it's a bit more nuanced whether we should change this, or not - is @bantonsson 's "new bridge work" going to necessarily land in tracing-opentelemetry? I don't think that's obvious yet. If it doesn't we'd want to see if we can do something like what i've described above there to move off of this pattern of |
Similar to #2743
I am not sure what is the need of
with_status
in the SpanBuilder. SpanBuilder is used to create a new Span, at which point the status should be unknown. It totally is valid to have this API on the Span itself as that'll be called only after a Span has been created.The text was updated successfully, but these errors were encountered: