Skip to content

feat(metrics): add metric_flush_threshold flag#2059

Open
Litarnus wants to merge 1 commit intoringbuffer-for-logsfrom
metric-flush-threshold
Open

feat(metrics): add metric_flush_threshold flag#2059
Litarnus wants to merge 1 commit intoringbuffer-for-logsfrom
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
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.

1 participant