@@ -169,8 +169,7 @@ init_per_testcase(delta_counter, Config) ->
169
169
% % delta is the default for a counter with sum aggregation
170
170
% % so no need to set any temporality mapping in the reader
171
171
ok = application :set_env (opentelemetry_experimental , readers , [#{module => otel_metric_reader ,
172
- config => #{exporter => {otel_metric_exporter_pid , self ()},
173
- default_temporality_mapping => default_temporality_mapping ()}}]),
172
+ config => #{exporter => {otel_metric_exporter_pid , self ()}}}]),
174
173
175
174
{ok , _ } = application :ensure_all_started (opentelemetry_experimental ),
176
175
@@ -1383,6 +1382,11 @@ advisory_params(_Config) ->
1383
1382
#{advisory_params => #{explicit_bucket_boundaries => [10 , 20 , 30 ]}}),
1384
1383
? assertEqual (Histogram # instrument .advisory_params , #{explicit_bucket_boundaries => [10 , 20 , 30 ]}),
1385
1384
1385
+ % % an empty boundaries list can be used to get a single bucket histogram `(-Inf, +Inf)'
1386
+ BHistogram = otel_histogram :create (Meter , b_histogram ,
1387
+ #{advisory_params => #{explicit_bucket_boundaries => []}}),
1388
+ ? assertEqual (BHistogram # instrument .advisory_params , #{explicit_bucket_boundaries => []}),
1389
+
1386
1390
Ctx = otel_ctx :new (),
1387
1391
1388
1392
? assertEqual (ok , otel_histogram :record (Ctx , Histogram , 15 , #{<<" a" >> => <<" 1" >>})),
0 commit comments