-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add configurable compression level to DogStatsD metrics submission #35
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
Conversation
feat: Add configurable compression level to DogStatsD metrics submission Add compression_level field to FlusherConfig and DdApi to enable configurable zstd compression for metrics payloads.
feat: Add configurable compression level to DogStatsD metrics submission Add compression_level field to FlusherConfig and DdApi to enable configurable zstd compression for metrics payloads.
| timeout: DOGSTATSD_TIMEOUT_DURATION, | ||
| retry_strategy: RetryStrategy::LinearBackoff(3, 1), | ||
| compression_level: CompressionLevel::try_from(6) | ||
| .expect("failed to create compression level"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expect should not be used unless infallible, let's use either an unwrap_or_default or another way to fallback to the default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revised
duncanista
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment, but overall everything else LGTM
…ning.li/SVLS-7461
…ning.li/SVLS-7461
What does this PR do?
https://datadoghq.atlassian.net/browse/SVLS-7461
feat: Add configurable compression level to DogStatsD metrics submission
Motivation
feat: Add configurable compression level to DogStatsD metrics submission
Add compression_level field to FlusherConfig and DdApi to enable configurable zstd compression for metrics payloads.
This change enables Bottlecap configuration integration in a future commit.
Describe how to test/QA your changes
Unit test coverage.