Skip to content

feat(metrics): add metric_flush_threshold flag#2059

Merged
Litarnus merged 3 commits intomasterfrom
metric-flush-threshold
Apr 7, 2026
Merged

feat(metrics): add metric_flush_threshold flag#2059
Litarnus merged 3 commits intomasterfrom
metric-flush-threshold

Conversation

@Litarnus
Copy link
Copy Markdown
Contributor

@Litarnus Litarnus commented Apr 2, 2026

Introduces the metric_flush_threshold flag which behaves the same as the log_flush_threshold flag, meaning that it will perform an automatic flush once the metric count is equal to the value configured in metric_flush_threshold.

This PR is deliberately pointed towards the ringbuffer-for-logs branch because it introduces the TelemetryStorage which is also used in this PR. Please review #2058 first, otherwise the current changes might not make that much sense. I will change the target to master once the previous PR is merged

closes PHP-75

@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 2, 2026

@Litarnus Litarnus self-assigned this Apr 2, 2026
@Litarnus Litarnus marked this pull request as ready for review April 2, 2026 16:36
Base automatically changed from ringbuffer-for-logs to master April 7, 2026 09:30
@Litarnus Litarnus merged commit 71c84eb into master Apr 7, 2026
46 checks passed
@Litarnus Litarnus deleted the metric-flush-threshold branch April 7, 2026 14:06
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.

2 participants