Commit 1c6d539
opentelemetry-sdk: fix OTLP exporting of histogram explicit buckets advisory
OTLP exporters don't rely on the default aggregation for histogram
instead they do it explicitly. So instead of setting boundaries at init
time of ExplicitBucketHistogramAggregation delay it in _create_aggregation
when we have the Histogram at hand.
Co-authored-by: Emídio Neto <[email protected]>1 parent a7fe4f8 commit 1c6d539
File tree
2 files changed
+37
-4
lines changed- opentelemetry-sdk
- src/opentelemetry/sdk/metrics/_internal
- tests/metrics/integration_test
2 files changed
+37
-4
lines changedLines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1367 | 1367 | | |
1368 | 1368 | | |
1369 | 1369 | | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | 1370 | | |
1375 | 1371 | | |
1376 | 1372 | | |
| |||
1391 | 1387 | | |
1392 | 1388 | | |
1393 | 1389 | | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
1394 | 1396 | | |
1395 | 1397 | | |
1396 | 1398 | | |
| |||
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
0 commit comments