Skip to content

feat: Optionally disable proc enhanced metrics #663

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

Merged
merged 2 commits into from
Apr 24, 2025

Conversation

astuyve
Copy link
Contributor

@astuyve astuyve commented Apr 24, 2025

Fixes #648

For customers using very very fast/small lambda functions (usually just rust), there can be a small 1-2ms increase in runtime duration when collecing metrics like open file descriptors or tmp file usage.

We still enable these by default, but customers can now optionally disable them

@astuyve astuyve requested a review from a team as a code owner April 24, 2025 14:54
@@ -38,6 +38,7 @@ pub struct Config {
pub logs_config_logs_dd_url: String,
pub serverless_flush_strategy: FlushStrategy,
pub enhanced_metrics: bool,
pub proc_enhanced_metrics: bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

should we include anything lambda|serverless related?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmm, why? Today enhanced metrics as a concept only apply to lambda/serverless

Copy link
Contributor

Choose a reason for hiding this comment

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

idk, just trying to be cautious about adding new env vars

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay I can add lambda

Copy link
Contributor

Choose a reason for hiding this comment

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

just a nit, i trust your gut 🫡

@astuyve astuyve merged commit 10f803c into main Apr 24, 2025
45 checks passed
@astuyve astuyve deleted the aj/optionally-disable-proc-enhanced-metrics branch April 24, 2025 15:56
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.

v76 seems affects lambda runtime
2 participants