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

example: add temporality selector option to metrics-basic #2217

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

Conversation

pitoniak32
Copy link
Contributor

Follow up PR from this comment: #2204 (review)

Changes

Add Temporality selector option to metrics-basic example

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

Used the full path so it can just be uncommented without needing to adjust imports
@pitoniak32 pitoniak32 requested a review from a team as a code owner October 16, 2024 12:25
Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.2%. Comparing base (8d84a76) to head (4327283).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #2217   +/-   ##
=====================================
  Coverage   79.2%   79.2%           
=====================================
  Files        122     122           
  Lines      21009   21009           
=====================================
  Hits       16646   16646           
  Misses      4363    4363           

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

let exporter = opentelemetry_stdout::MetricsExporterBuilder::default().build();
let exporter = opentelemetry_stdout::MetricsExporterBuilder::default()
// Build exporter using Default (Cumulative) Temporality Selector.
.with_temporality_selector(
Copy link
Member

Choose a reason for hiding this comment

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

@utpilla suggested this can be further simplified. An enum should be better here, delta/cumulative/lowmemory being the enum variants.

@pitoniak32 Do you have bandwidth to help make this change? Hoping to make it done by next release, so as to avoid breaking users after that release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah for sure, I can take a look tomorrow morning. When would the next release be? Also, Is there an open issue for this currently?

Copy link
Member

Choose a reason for hiding this comment

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

Next release is ~Oct 22-25.
No issue with all the details, #2099 is the closest. Hope that is good enough to get started.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I took a first go at this before work this morning. I will take another look and try and clean things up later today.

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