-
Notifications
You must be signed in to change notification settings - Fork 821
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
feat(metrics): add registerMetric and getMetrics #437
feat(metrics): add registerMetric and getMetrics #437
Conversation
Codecov Report
@@ Coverage Diff @@
## master #437 +/- ##
==========================================
+ Coverage 94.83% 95.09% +0.25%
==========================================
Files 131 132 +1
Lines 6528 6851 +323
Branches 560 572 +12
==========================================
+ Hits 6191 6515 +324
+ Misses 337 336 -1
|
0361ac1
to
dde4d20
Compare
9bef4bf
to
782162e
Compare
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 so far and I think we should move ahead to iterate towards end-to-end implementation
782162e
to
bc0fcda
Compare
What do you think about this TODO -> https://github.com/open-telemetry/opentelemetry-js/pull/437/files#r336268261 |
bc0fcda
to
18804bf
Compare
18804bf
to
f8e3fe1
Compare
It looks like |
Yes, this is intentional. |
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. Left very minor style suggestions.
f1445ec
to
d7c09fc
Compare
00115df
to
0ec801a
Compare
Co-authored-by: Gerhard Stöbich <[email protected]>
Which problem is this PR solving?
Updates Implement Metrics SDK #402
Continuation of Metrics SDK feat: implement metrics sdk #415.
Added methods (
registerMetric
andgetMetrics
) to collect recorded values in the format of ReadableMetric, which can be used by metric exporters to transform and send to the backend.Pending stuff for next PRs:
meter.getMetrics()
MeasureHandle
.TODO:
Decide whichMetricDescriptorType
to assign in case of Gauge (two options areMetricDescriptorType.GAUGE_INT64
andMetricDescriptorType.GAUGE_DOUBLE
) and in case of counter (two options areMetricDescriptorType.COUNTER_INT64
andMetricDescriptorType.COUNTER_DOUBLE
)(update 1: 10/30)
Implemented option 3 as per SIG discussion: https://docs.google.com/document/d/1g0O7TZ4KH82iwbJmEdBh3qWONnHbap3ajjD2_HWA0mY/edit
/cc @danielkhan @bg451