@@ -206,13 +206,21 @@ void configureWhenAllPercentilesSetShouldSetPercentilesToValue() {
206206 }
207207
208208 @ Test
209- void configureWhenHasSloShouldSetSloToValue () {
209+ void configureWhenTimerMeterHasSloShouldSetSloToValue () {
210210 PropertiesMeterFilter filter = new PropertiesMeterFilter (
211211 createProperties ("distribution.slo.spring.boot=1,2,3" ));
212212 assertThat (filter .configure (createMeterId ("spring.boot" ), DistributionStatisticConfig .DEFAULT )
213213 .getServiceLevelObjectiveBoundaries ()).containsExactly (1000000 , 2000000 , 3000000 );
214214 }
215215
216+ @ Test
217+ void configureWhenDistributionSummaryMeterHasSloShouldSetSloToValue () {
218+ PropertiesMeterFilter filter = new PropertiesMeterFilter (createProperties ("distribution.slo.example=1,2,3" ));
219+ assertThat (filter
220+ .configure (createMeterId ("example" , Meter .Type .DISTRIBUTION_SUMMARY ), DistributionStatisticConfig .DEFAULT )
221+ .getServiceLevelObjectiveBoundaries ()).containsExactly (1.0 , 2.0 , 3.0 );
222+ }
223+
216224 @ Test
217225 void configureWhenHasHigherSloShouldSetPercentilesToValue () {
218226 PropertiesMeterFilter filter = new PropertiesMeterFilter (createProperties ("distribution.slo.spring=1,2,3" ));
@@ -229,13 +237,23 @@ void configureWhenHasHigherSloAndLowerShouldSetSloToLower() {
229237 }
230238
231239 @ Test
232- void configureWhenHasMinimumExpectedValueShouldSetMinimumExpectedToValue () {
240+ void configureWhenTimerMeterHasMinimumExpectedValueShouldSetMinimumExpectedToValue () {
233241 PropertiesMeterFilter filter = new PropertiesMeterFilter (
234242 createProperties ("distribution.minimum-expected-value.spring.boot=10" ));
235243 assertThat (filter .configure (createMeterId ("spring.boot" ), DistributionStatisticConfig .DEFAULT )
236244 .getMinimumExpectedValueAsDouble ()).isEqualTo (Duration .ofMillis (10 ).toNanos ());
237245 }
238246
247+ @ Test
248+ void configureWhenDistributionSummaryMeterHasMinimumExpectedValueShouldSetMinimumExpectedToValue () {
249+ PropertiesMeterFilter filter = new PropertiesMeterFilter (
250+ createProperties ("distribution.minimum-expected-value.spring.boot=10" ));
251+ assertThat (filter
252+ .configure (createMeterId ("spring.boot" , Meter .Type .DISTRIBUTION_SUMMARY ),
253+ DistributionStatisticConfig .DEFAULT )
254+ .getMinimumExpectedValueAsDouble ()).isEqualTo (10 );
255+ }
256+
239257 @ Test
240258 void configureWhenHasHigherMinimumExpectedValueShouldSetMinimumExpectedValueToValue () {
241259 PropertiesMeterFilter filter = new PropertiesMeterFilter (
@@ -253,13 +271,23 @@ void configureWhenHasHigherMinimumExpectedValueAndLowerShouldSetMinimumExpectedV
253271 }
254272
255273 @ Test
256- void configureWhenHasMaximumExpectedValueShouldSetMaximumExpectedToValue () {
274+ void configureWhenTimerMeterHasMaximumExpectedValueShouldSetMaximumExpectedToValue () {
257275 PropertiesMeterFilter filter = new PropertiesMeterFilter (
258276 createProperties ("distribution.maximum-expected-value.spring.boot=5000" ));
259277 assertThat (filter .configure (createMeterId ("spring.boot" ), DistributionStatisticConfig .DEFAULT )
260278 .getMaximumExpectedValueAsDouble ()).isEqualTo (Duration .ofMillis (5000 ).toNanos ());
261279 }
262280
281+ @ Test
282+ void configureWhenDistributionSummaryMeterHasMaximumExpectedValueShouldSetMaximumExpectedToValue () {
283+ PropertiesMeterFilter filter = new PropertiesMeterFilter (
284+ createProperties ("distribution.maximum-expected-value.spring.boot=10" ));
285+ assertThat (filter
286+ .configure (createMeterId ("spring.boot" , Meter .Type .DISTRIBUTION_SUMMARY ),
287+ DistributionStatisticConfig .DEFAULT )
288+ .getMaximumExpectedValueAsDouble ()).isEqualTo (10 );
289+ }
290+
263291 @ Test
264292 void configureWhenHasHigherMaximumExpectedValueShouldSetMaximumExpectedValueToValue () {
265293 PropertiesMeterFilter filter = new PropertiesMeterFilter (
0 commit comments