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

Fix metrics asan and tsan CI #1562

Merged
merged 1 commit into from
Aug 11, 2022
Merged

Conversation

esigo
Copy link
Member

@esigo esigo commented Aug 11, 2022

Fixes metrics asan and tsan CI

Changes

We have false positive on attributes_hashmap_benchmark.cc, this can be removed if we store the lambda in a variable and construct threads with it.

also a raw pointer was used in test, changed to smart pointer.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@esigo esigo requested a review from a team August 11, 2022 21:04
@codecov
Copy link

codecov bot commented Aug 11, 2022

Codecov Report

Merging #1562 (35c9355) into main (6c240fd) will decrease coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1562      +/-   ##
==========================================
- Coverage   83.38%   83.32%   -0.06%     
==========================================
  Files         156      156              
  Lines        4975     4975              
==========================================
- Hits         4148     4145       -3     
- Misses        827      830       +3     
Impacted Files Coverage Δ
ext/src/http/client/curl/http_client_curl.cc 80.31% <0.00%> (-1.13%) ⬇️

opentelemetry::sdk::metrics::AsyncMetricStorage storage(
instr_desc, AggregationType::kSum, new DefaultAttributesProcessor(),
instr_desc, AggregationType::kSum, default_attributes_processor.get(),
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for fixing this leak :)

Copy link
Member

@lalitb lalitb left a comment

Choose a reason for hiding this comment

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

LGTM

@esigo esigo merged commit 1b9aa31 into open-telemetry:main Aug 11, 2022
@esigo esigo deleted the asan-tsan-fix branch August 11, 2022 22:14
yxue pushed a commit to yxue/opentelemetry-cpp that referenced this pull request Dec 5, 2022
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.

2 participants