Skip to content

Conversation

@litianningdatadog
Copy link
Contributor

@litianningdatadog litianningdatadog commented Aug 22, 2025

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.

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.
@litianningdatadog litianningdatadog marked this pull request as draft August 22, 2025 17:02
@litianningdatadog litianningdatadog changed the title https://datadoghq.atlassian.net/browse/SVLS-7461 feat: Add configurable compression level to DogStatsD metrics submission Aug 22, 2025
@litianningdatadog litianningdatadog requested review from astuyve and lym953 and removed request for lym953 August 25, 2025 15:16
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.
@litianningdatadog litianningdatadog marked this pull request as ready for review August 28, 2025 17:54
timeout: DOGSTATSD_TIMEOUT_DURATION,
retry_strategy: RetryStrategy::LinearBackoff(3, 1),
compression_level: CompressionLevel::try_from(6)
.expect("failed to create compression level"),
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

revised

Copy link
Contributor

@duncanista duncanista left a 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

@litianningdatadog litianningdatadog merged commit b0b0cb9 into main Sep 2, 2025
26 checks passed
@litianningdatadog litianningdatadog deleted the tianning.li/SVLS-7461 branch September 2, 2025 14:54
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.

3 participants