Skip to content

Conversation

@dimaqq
Copy link
Contributor

@dimaqq dimaqq commented Jun 5, 2025

I'm proposing this as a hot-fix to support both older and newer style of the OpenTelemetry SDK.

Upstream change that broke our code: open-telemetry/opentelemetry-python#4580

@dimaqq dimaqq marked this pull request as ready for review June 5, 2025 07:39
Copy link
Collaborator

@tonyandrewmeyer tonyandrewmeyer left a comment

Choose a reason for hiding this comment

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

I still don't really like that we're using private attributes, since it seems like it keeps the likelihood of problems like this happening. If we pinned to specific versions we could avoid that, but that's generally bad practice for libraries.

It seems like this is worth doing now to get a quick fix out and we can figure out if there's something better we can do longer term afterwards.

I haven't managed to try this out yet - will finish that first thing tomorrow I hope.

@dimaqq dimaqq requested a review from tonyandrewmeyer June 5, 2025 11:09
Copy link
Contributor

@james-garner-canonical james-garner-canonical left a comment

Choose a reason for hiding this comment

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

+1 on figuring out something else for the long term, but agreed on getting this fix in now

@benhoyt
Copy link
Collaborator

benhoyt commented Jun 5, 2025

I don't think we should merge this workaround, but rather figure out a way of not using those private attributes. Your option 2 in the chat sounds reasonable to me: "use globals--record our exporter when we set the library-global tracer provider, and get a reference to own exporter from own global". Let's discuss further in daily and see if we can come to consensus.

@dimaqq dimaqq closed this Jun 6, 2025
@dimaqq dimaqq deleted the wip-support-newer-opentelemetry-sdk branch June 6, 2025 02:00
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.

4 participants