Skip to content

Conversation

bantonsson
Copy link
Contributor

Motivation

The state field will be removed from the public API of the OpenTelemetry SpanBuilder along with a number of other fields open-telemetry/opentelemetry-rust#2886

This is the last of the removed fields being used.

Solution

Keep the state in the data until the OpenTelemetry Span is created.

@mladedav
Copy link
Collaborator

Ah, sorry, I forgot about this during the day but we can still do this in a point release.

That said, I'd also like to untangle the dependencies between opentelemtry and us because now we're in a weird state where presumably their appender depends on an older version without the context propagation rework and will continue to until the next breaking release.

@bantonsson
Copy link
Contributor Author

No worries. Doing this in a point release is fine.

Yes, moving the appenders to https://github.com/open-telemetry/opentelemetry-rust-contrib would be a good thing to break up the circularity.

Copy link
Collaborator

@mladedav mladedav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mladedav mladedav merged commit fa5e430 into tokio-rs:v0.1.x Oct 6, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants