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

Add observable instruments to periodicreader tests #2428

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cijothomas
Copy link
Member

To cover various scenarios especially to show that callbacks doing asynchronous runtime specifics won't work well.

@cijothomas cijothomas requested a review from a team as a code owner December 13, 2024 21:44
Copy link

codecov bot commented Dec 13, 2024

Codecov Report

Attention: Patch coverage is 95.23810% with 5 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@b8380eb). Learn more about missing BASE report.

Files with missing lines Patch % Lines
opentelemetry-sdk/src/metrics/periodic_reader.rs 95.2% 5 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##             main   #2428   +/-   ##
======================================
  Coverage        ?   79.5%           
======================================
  Files           ?     122           
  Lines           ?   21796           
  Branches        ?       0           
======================================
  Hits            ?   17338           
  Misses          ?    4458           
  Partials        ?       0           

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

@cijothomas cijothomas requested a review from Copilot December 13, 2024 22:29
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

opentelemetry-sdk/src/metrics/periodic_reader.rs Outdated Show resolved Hide resolved
@@ -803,4 +803,134 @@ mod tests {
"Metrics should be available in exporter."
);
}

async fn some_async_function() -> u64 {
Copy link
Member Author

Choose a reason for hiding this comment

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

@howardjohn If you have bandwidth, could you review these? Asking since you helped fix some bugs in the area previously!

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