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

Document and test honoring context in metric readers Collect #4267

Merged
merged 7 commits into from
Jun 29, 2023
Merged

Document and test honoring context in metric readers Collect #4267

merged 7 commits into from
Jun 29, 2023

Conversation

dmathieu
Copy link
Member

Closes #4166.

  • Documents the Reader interface that every reader has to honor the context's deadline
  • Document that ManualReader honors the context's deadline, and test it.
  • Document that PeriodicReader honors the context's deadline, and test it.

@dmathieu dmathieu added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jun 28, 2023
@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Merging #4267 (370da4c) into main (8e25817) will increase coverage by 0.0%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #4267   +/-   ##
=====================================
  Coverage   83.5%   83.6%           
=====================================
  Files        181     181           
  Lines      14162   14162           
=====================================
+ Hits       11830   11840   +10     
+ Misses      2105    2096    -9     
+ Partials     227     226    -1     
Impacted Files Coverage Δ
sdk/metric/manual_reader.go 85.0% <ø> (ø)
sdk/metric/periodic_reader.go 93.0% <ø> (+1.1%) ⬆️
sdk/metric/reader.go 100.0% <ø> (ø)

... and 2 files with indirect coverage changes

sdk/metric/manual_reader.go Outdated Show resolved Hide resolved
sdk/metric/periodic_reader.go Outdated Show resolved Hide resolved
sdk/metric/reader.go Outdated Show resolved Hide resolved
dmathieu and others added 3 commits June 29, 2023 09:33
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
@pellared pellared merged commit 64e76f8 into open-telemetry:main Jun 29, 2023
@dmathieu dmathieu deleted the doc-collect-deadline branch June 29, 2023 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Document and implement honoring timeout in context passed to Readers
4 participants