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(profiling): correct the scheduler sleep time based on exporter time #1386

Merged
merged 3 commits into from
Apr 30, 2020

Conversation

jd
Copy link
Contributor

@jd jd commented Apr 28, 2020

The current Scheduler always sleeps interval (default 60s) between two
exports.

If the export takes more than 0s (hehe), then the exporter might end up
exporting more than one minute of data during the next flush.

This makes sure we compensate the sleeping interval for that and makes sure the
profiler do export one minute of data every minute.

The current Scheduler always sleeps `interval` (default 60s) between two
exports.

If the export takes more than 0s (hehe), then the exporter might end up
exporting more than one minute of data during the next flush.

This makes sure we compensate the sleeping interval for that and makes sure the
profiler do export one minute of data every minute.
@jd jd requested a review from a team as a code owner April 28, 2020 09:47
@jd jd merged commit 130d708 into DataDog:master Apr 30, 2020
@jd jd deleted the profiling/scheduler-handle-time branch April 30, 2020 11:13
@Kyle-Verhoog Kyle-Verhoog added this to the 0.38.0 milestone May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants