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

stackdriver: fix Cargo features for GcpAuthorizer #51

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

djc
Copy link
Contributor

@djc djc commented Mar 15, 2024

Changes

#50 regressed the support for actually using the GcpAuthorizer: it used the dep:gcp_auth syntax for enabling the dependency by default, but the actual GcpAuthorizer code was guarded by a gcp_auth feature which didn't exist anymore. Bring back a named feature for this (now called gcp-authorizer to match yup-authorizer).

This time I will start a PR for my work repository based on my branch to make sure it actually works.

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

@djc djc requested a review from a team March 15, 2024 08:22
Copy link

codecov bot commented Mar 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.7%. Comparing base (a98f9be) to head (b89e0b5).

Additional details and impacted files
@@           Coverage Diff           @@
##            main     #51     +/-   ##
=======================================
- Coverage   51.9%   51.7%   -0.3%     
=======================================
  Files         37      37             
  Lines       4896    4918     +22     
=======================================
  Hits        2544    2544             
- Misses      2352    2374     +22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@djc djc force-pushed the gcp-authorizer branch from 4af0199 to b89e0b5 Compare March 18, 2024 13:58
Copy link
Contributor

@TommyCpp TommyCpp left a comment

Choose a reason for hiding this comment

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

Interesting. I'd thought clippy would caught this

@TommyCpp
Copy link
Contributor

Merging this. @djc I think you are listed as owner of https://crates.io/crates/opentelemetry-stackdriver in crates.io. Do you want to publish a new version?

@TommyCpp TommyCpp merged commit 4a4f373 into open-telemetry:main Mar 18, 2024
9 checks passed
@djc
Copy link
Contributor Author

djc commented Mar 18, 2024

Yeah, will do!

@djc
Copy link
Contributor Author

djc commented Mar 19, 2024

Published 0.19.1 on crates.io.

@djc
Copy link
Contributor Author

djc commented Mar 19, 2024

Interesting. I'd thought clippy would caught this

I think this is a weak spot in the toolchain, I think work is ongoing to fix it though.

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.

3 participants