Skip to content

Investigate why correctness tests don't seem to exercise sample rate handling difference between Agent and ADP for DogStatsD. #1119

@tobz

Description

@tobz

Context

I recently discovered that it seems that the Datadog Agent does not actually enforce a bin limit any longer on its sketch structures used for distributions coming over DogStatsD. This shows up in terms of how we now handle distributions in ADP which involves clamping the incoming sample rate to avoid trying to add more samples to a DDSketch than would be allowed by the maximum theoretical count based on the configured bin limit and integral types.

While the Agent will happily track more samples than the theoretical limit, we do not in ADP. This is only visible in some internal deployments where distributions with very high sample rates are present.

The main question is: why do we not seem to exercise this code path in correctness tests given that we're using lading, which often generates payload in a very fuzzer-like fashion. We should investigate if something on the lading side is preventing sufficiently high sample rates from being generated in these payloads, or if something else is at play.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/testAll things testing: unit/integration, correctness, SMP regression, etc.effort/intermediateInvolves changes that can be worked on by non-experts but might require guidance.good first issueGood for newcomerssource/dogstatsdDogStatsD source.type/investigationA potential issue that requires further investigation to quantify and categorize.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions