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

fix: metric bucket start time should be reset everytime it is sent #219

Merged
merged 2 commits into from
Feb 19, 2025

Conversation

ivarconr
Copy link
Member

@ivarconr ivarconr commented Feb 18, 2025

A potential fix for the "start" property of the metrics bucket not being reset correctly.

  1. This change lacks tests, HELP WANTED!
  2. What is the SDK supposed to do if it is unable to send the metrics right now? (Might be solved outside of this fix)

@ivarconr ivarconr force-pushed the fix/metrics_start_time branch from b581bd5 to 0fd28b3 Compare February 18, 2025 19:11
@ivarconr ivarconr force-pushed the fix/metrics_start_time branch from 0fd28b3 to 724823b Compare February 18, 2025 19:17
@ivarconr ivarconr requested a review from sighphyre February 18, 2025 19:18
Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, I've added a test to this

Good call on the missed metrics too. The SDK itself should hang onto that object and buffer it

@sighphyre sighphyre merged commit feddb5d into main Feb 19, 2025
2 checks passed
@sighphyre sighphyre deleted the fix/metrics_start_time branch February 19, 2025 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants