Driftwatch

Datadog / Datadog API v2 /

Breakingdirection flip: their tools call this safe

value can now return "explicit_histogram", "exponential_histogram"

What changed

Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

Affects this value on MetricTagConfigurationMetricTypes reachable from 4 operations.

New values: explicit_histogram, exponential_histogram.

can now return "explicit_histogram", "exponential_histogram"

Who is affected

Code that reads Datadog's MetricTagConfigurationMetricTypes objects, used by 4 Datadog operations.

Before and after

WhereBeforeAfter
MetricTagConfigurationMetricTypes"count", "distribution", "gauge", "rate""count", "distribution", "explicit_histogram", "exponential_histogram", "gauge", "rate"

Code that breaks

switch (response) {
  // existing branches …
  // no branch for "explicit_histogram"
  // no branch for "exponential_histogram"
  default:
    throw new Error("unexpected value");
}

Based on Datadog’s published API specification. How severity is decided.