Skip to content
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

Simplify the impementation of the set_gauge helper #223

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

luismiramirez
Copy link
Member

The set_gauge now uses OpenTelemetry's newer helper, which creates a sync gauge.

Our own implementation of create_gauge around the async OpenTelemetry's implementation has been removed in favor of the newer sync helper.

Closes #220

The `set_gauge` now uses OpenTelemetry's newer helper which creates a
sync gauge.

Our own implementation of `create_gauge` around the async
OpenTelemetry's implementation has been removed in favor of the newer
sync helper.
Copy link
Member

@tombruijn tombruijn left a comment

Choose a reason for hiding this comment

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

We should have a minimum version requirement on the OpenTelemetry package that introduces this new create_gauge function.

Looks like it was added here in version v1.23.0

Can you add a minimum version requirement on the API/SDK package?

@luismiramirez
Copy link
Member Author

Can you add a minimum version requirement on the API/SDK package?

Sure! :D I wanted to do this during the development of this PR.

pyproject.toml Outdated Show resolved Hide resolved
Fix OpenTelemetry API and SDK dependencies to 1.26.0 minimum so nothing
breaks when using the sync gauge.
@luismiramirez luismiramirez force-pushed the update-set-gauge-helper branch from afb4c98 to 536a364 Compare August 22, 2024 09:33
@luismiramirez luismiramirez merged commit ce013c3 into main Aug 22, 2024
9 checks passed
@luismiramirez luismiramirez deleted the update-set-gauge-helper branch August 22, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify set_gauge helper
2 participants