-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[connector/spanmetrics] Fix spanmetrics for child spans #36718
base: main
Are you sure you want to change the base?
Conversation
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
not stale |
@shivanthzen are you able to look at the failing tests? For example:
|
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
not stale |
Apparently, for delta temporality, all the metrics collected are reset to empty state after consuming one round of data. Hence storing the lastseentimestamp within the metric doesn't work. This PR moves lastseentimestamp out of metric into a map (as it was stored previously) of
b13e4d0
to
fc56cd1
Compare
@portertech Sorry about the delay. Please take another look. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
@portertech please review |
Description
Currently, metric start timestamps are associated with the parent span (resource level). This means that all child spans, even those that occur asynchronously or infrequently, inherit the same start timestamp. This can lead to inaccurate data.
This merge request proposes moving the start timestamp (and last seen timestamp) from the parent span level to the individual child span (metric) level. This will ensure that each metric has its own accurate start and last seen timestamps, regardless of its relationship to other spans.
Link to tracking issue
Fixes #35994
Testing
Documentation