-
Notifications
You must be signed in to change notification settings - Fork 825
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: prometheus counters can only count up #561
fix: prometheus counters can only count up #561
Conversation
Codecov Report
@@ Coverage Diff @@
## master #561 +/- ##
==========================================
- Coverage 92.58% 91.55% -1.03%
==========================================
Files 158 133 -25
Lines 8022 6064 -1958
Branches 675 463 -212
==========================================
- Hits 7427 5552 -1875
+ Misses 595 512 -83
|
This approach seems simple and straightforward, but I am a little worried about changes to |
@mayurkale22 do you have an alternative suggestion? One thing I can think of is to do this at the SDK level (create a 'counter-like' wrapper around a edit: another SDK level possibility is to create a |
@mayurkale22 is there some reason the internal type has to exactly match the Proto? or is that just a convenience? |
Let's talk about this at the SIG. I'll make a short doc explaining the situation to everyone. |
packages/opentelemetry-exporter-prometheus/test/prometheus.test.ts
Outdated
Show resolved
Hide resolved
Per SIG, we are going to send |
@open-telemetry/javascript-approvers please give this a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, we need to do same thing for Monotonic Gauge based on open-telemetry/opentelemetry-specification#259 decision.
I'm not sure we should do that yet since the issue is not settled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…oss-contrib/opentelemetry-js into prometheus-metric-compat-only
Which problem is this PR solving?
Short description of the changes