-
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
Metrics: Add lastUpdateTimestamp associated with point #893
Metrics: Add lastUpdateTimestamp associated with point #893
Conversation
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.
Looks ok except for the timestamp comment on measure. It also doesn't appear these times are currently used for anything, is that on purpose?
17cf8b8
to
a7fcfc3
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. It looks like the timestamps are unused so far, is that intentional?
Used in |
Codecov Report
@@ Coverage Diff @@
## master #893 +/- ##
===========================================
+ Coverage 66.88% 94.21% +27.33%
===========================================
Files 81 248 +167
Lines 1999 11000 +9001
Branches 302 1047 +745
===========================================
+ Hits 1337 10364 +9027
+ Misses 662 636 -26
|
@open-telemetry/javascript-approvers would like some approvals on this so it can be included in |
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, just jsdoc missing
/** Returns snapshot of the current point (value with timestamp). */ | ||
toPoint(): Point; | ||
} | ||
|
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.
jsdoc
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.
I will include this in separate PR, thanks for noticing it.
Which problem is this PR solving?
Based on the specs: https://github.com/open-telemetry/opentelemetry-specification/blob/4e7cd5a7d13e09674d0c7cc8b5932ada367c4d2b/specification/api-metrics.md#time
Feel free to add comments.