{
  "slug": "opentelemetry-exponential-histogram",
  "term": "Exponential histogram (OpenTelemetry)",
  "aliases": [
    "OTel ExponentialHistogram",
    "OpenTelemetry exponential histogram"
  ],
  "definition": "An OpenTelemetry exponential histogram represents measurement counts in magnitude buckets with boundaries determined by an integer scale.",
  "note": "For positive values, bucket i covers (base^i, base^(i+1)], with base = 2^(2^(-scale)). Negative magnitudes have a separate range; a configurable zero bucket is separate again. Lowering the scale combines aligned buckets exactly, but loses the finer partition. This is called perfect subsetting. [otel]\n\nExact regrouping of counts does not recover individual measurements or exact percentiles. In Hesela's constructed 100-duration example, two populations yield the same scale-0 histogram, count, sum, minimum and maximum. Their nearest-rank p99 values are 1.4 ms and 1.6 ms. Both map to 100 observations in (1, 2] ms; this is deliberate information loss, not a faulty count merge. [example]\n\nThe calculation uses exact rational values and checks that direct scale-0 counting equals scale-2 counting followed by downscaling. Signed bucket indexes need floor division: a fine index of -1 remains negative when coarsened, rather than truncating to 0. The downloadable model is an arithmetic illustration, not an OpenTelemetry SDK benchmark. [example]\n\nDGIM uses timestamped buckets for expiring stream counts. It is a different algorithm despite the shared name. Preserve units, temporality and window ownership separately from the histogram's scale.",
  "related": [
    "dgim-exponential-histogram",
    "latency-histogram-bin",
    "aggregation-temporality"
  ],
  "citations": [
    {
      "id": "otel",
      "title": "OpenTelemetry Metrics Data Model: ExponentialHistogram, perfect subsetting, bucket inclusivity and zero threshold.",
      "url": "https://opentelemetry.io/docs/specs/otel/metrics/data-model/#exponentialhistogram",
      "accessed": "2026-11-20"
    },
    {
      "id": "example",
      "title": "Hesela: exact-rational coarsening example, generated observations and reproduction instructions.",
      "url": "https://hesela.dev/research/exponential-histograms/README.txt",
      "accessed": "2026-11-20"
    }
  ],
  "status": "research",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-20"
}
