Skip to content

Conversation

@hauleth
Copy link
Contributor

@hauleth hauleth commented Jul 9, 2025

Metrics specifications can be copied to many different processes by some of the handlers, this mean that we need to reduce the size of metrics specs as much as possible to perform well in high throughput services.

This change replaces lambda with function capture, that not only provides smaller footprint, it also allows some handlers to pattern match on function if needed.

Metrics specifications can be copied to many different processes by some
of the handlers, this mean that we need to reduce the size of metrics
specs as much as possible to perform well in high throughput services.
This change replaces lambda with function capture, that not only
provides smaller footprint, it also allows some handlers to pattern
match on function if needed.
@josevalim josevalim merged commit db850bd into beam-telemetry:main Jul 10, 2025
0 of 2 checks passed
@josevalim
Copy link
Contributor

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants