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

[connector/spanmetrics] Fix spanmetrics for child spans #36718

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

Conversation

shivanthzen
Copy link
Contributor

@shivanthzen shivanthzen commented Dec 9, 2024

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

@shivanthzen shivanthzen changed the title Fix spanmetrics [connector/spanmetrics] Fix spanmetrics Dec 9, 2024
@shivanthzen shivanthzen changed the title [connector/spanmetrics] Fix spanmetrics [connector/spanmetrics] Fix spanmetrics for child spans Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[connector/spanmetrics] Incorrect starttimestamps for subspans.
1 participant