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

[TEST] Fix lifetime issues in prometheus test utils #2322

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

punya
Copy link
Member

@punya punya commented Sep 21, 2023

The MetricsData instance returned from these helpers outlived the
Resource and InstrumentationScope instances that it pointed to.

@punya punya requested a review from a team September 21, 2023 23:13
@punya
Copy link
Member Author

punya commented Sep 21, 2023

@dashpole and @quentinmit this was informed by our discussion earlier today. Once it's merged we can use this approach in #2293 as well.

@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Merging #2322 (965f176) into main (13f01ca) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2322   +/-   ##
=======================================
  Coverage   87.45%   87.45%           
=======================================
  Files         199      199           
  Lines        5997     5997           
=======================================
  Hits         5244     5244           
  Misses        753      753           

The MetricsData instance returned from these helpers outlived the
Resource and InstrumentationScope instances that it pointed to.
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.

Thanks for the fix.

@ThomsonTan ThomsonTan merged commit ca67af0 into open-telemetry:main Sep 22, 2023
44 checks passed
@punya punya deleted the fix-lifetimes branch September 22, 2023 10:06
@marcalff marcalff changed the title Fix lifetime issues in test utils [TEST] Fix lifetime issues in prometheus test utils Oct 11, 2023
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