Skip to content

Conversation

@jack-berg
Copy link
Member

Related to #6601.

@codecov
Copy link

codecov bot commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.22%. Comparing base (5be177d) to head (e41a9df).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #6629      +/-   ##
============================================
+ Coverage     90.19%   90.22%   +0.02%     
- Complexity     6281     6286       +5     
============================================
  Files           697      697              
  Lines         18903    18911       +8     
  Branches       1852     1852              
============================================
+ Hits          17050    17062      +12     
+ Misses         1281     1280       -1     
+ Partials        572      569       -3     

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


/** Returns true if {@code attributes} has keys not contained in {@link #attributeKeys}. */
private boolean hasExtraKeys(Attributes attributes) {
boolean[] result = {false};
Copy link
Member Author

Choose a reason for hiding this comment

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

This little trick allows you to update state from inside a lambda without an atomic variable.

@jack-berg jack-berg merged commit d16ba00 into open-telemetry:main Aug 8, 2024
breedx-splk pushed a commit to breedx-splk/opentelemetry-java that referenced this pull request Aug 12, 2024
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