Skip to content

Conversation

@pull
Copy link

@pull pull bot commented May 9, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

* use the existing storage for sync or async instruments of the same name. add tests

* add hash and name case insensitive hash for InstrumentDescriptor. Update storage registry to use the hash and equality structs. Add tests.

* don't allocate heap in the hash. fix some ci failures

* fix a few more ci failures.

* move the instrument descriptor ostream operator to meter.cc to not leak the ostream header and keep the meter instrument creation warning implementation in the same file

* adds instrument descriptor tests

* add comments

* Move case-insensitive equals method and IsDuplicate method into InstrumentDescriptorUtils struct. Add log streamable wrappers for scopes and instrument descriptors. Add tests for correcitve views for name and description duplicates

* fix iwyu errors

* duplicate instrument log message improvements to match spec. minor test additions/cleanup

* changelog entry

* address review feedback. Add Ascii to the name of the instrument util case-insensitive equal function

* address feedback: short circuit the instrument descriptor CaseInsensitiveAsciiEquals and IsDuplicate checks

* fix comments

---------

Co-authored-by: Tom Tan <[email protected]>
Co-authored-by: Marc Alff <[email protected]>
Co-authored-by: Lalit Kumar Bhasin <[email protected]>
@pull pull bot added the ⤵️ pull label May 9, 2025
@pull pull bot merged commit 92dd28c into lalitb:main May 9, 2025
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 85.36585% with 18 lines in your changes missing coverage. Please review.

Project coverage is 90.05%. Comparing base (4e4d8de) to head (92dd28c).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...dk/include/opentelemetry/sdk/metrics/instruments.h 75.76% 16 Missing ⚠️
sdk/src/metrics/meter.cc 96.50% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #387      +/-   ##
==========================================
+ Coverage   89.98%   90.05%   +0.08%     
==========================================
  Files         211      212       +1     
  Lines        6812     6932     +120     
==========================================
+ Hits         6129     6242     +113     
- Misses        683      690       +7     
Files with missing lines Coverage Δ
sdk/include/opentelemetry/sdk/metrics/meter.h 57.15% <ø> (ø)
sdk/src/metrics/meter.cc 85.89% <96.50%> (+3.39%) ⬆️
...dk/include/opentelemetry/sdk/metrics/instruments.h 75.76% <75.76%> (ø)

... and 3 files with indirect coverage changes

🚀 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants