Commit d6ea233
committed
Fix feature_flag.evaluations metric count always being zero
The OTel SDK defaults to DELTA temporality for counters. The Datadog
agent converts OTLP delta monotonic sums to rate metrics by dividing
by the export interval (10s). Five evaluations in under 1s produce
~0.5, which rounds to zero in the points payload.
Force CUMULATIVE temporality on the OtlpHttpMetricExporter so the
agent receives an absolute count rather than a rate, making
test_ffe_eval_metric_count reliable.1 parent 18c0441 commit d6ea233
1 file changed
Lines changed: 5 additions & 1 deletion
File tree
- products/feature-flagging/feature-flagging-api/src/main/java/datadog/trace/api/openfeature
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
0 commit comments