Skip to content

feat(storage): add OpenTelemetryMetricsOption and env var support - #16301

Open
bajajneha27 wants to merge 1 commit into
googleapis:mainfrom
bajajneha27:540353280
Open

feat(storage): add OpenTelemetryMetricsOption and env var support#16301
bajajneha27 wants to merge 1 commit into
googleapis:mainfrom
bajajneha27:540353280

Conversation

@bajajneha27

Copy link
Copy Markdown
Contributor

No description provided.

@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Jul 31, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces the OpenTelemetryMetricsOption to enable metrics collection with OpenTelemetry in the Google Cloud C++ SDK. It adds support for configuring this option via the GOOGLE_CLOUD_CPP_OPENTELEMETRY_METRICS environment variable, propagates it through common and authentication options, integrates it into the storage client options, and includes corresponding unit tests to verify the behavior. There are no review comments, so I have no feedback to provide.

@bajajneha27
bajajneha27 marked this pull request as ready for review July 31, 2026 14:04
@bajajneha27
bajajneha27 requested review from a team as code owners July 31, 2026 14:04
@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.30%. Comparing base (842dfb2) to head (77d5328).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16301      +/-   ##
==========================================
- Coverage   92.30%   92.30%   -0.01%     
==========================================
  Files        2223     2223              
  Lines      208177   208213      +36     
==========================================
+ Hits       192165   192194      +29     
- Misses      16012    16019       +7     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant