Commit 6b33269
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 e7fcc47 commit 6b33269
File tree
1 file changed
+5
-1
lines changed- products/feature-flagging/feature-flagging-api/src/main/java/datadog/trace/api/openfeature
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| |||
0 commit comments