Skip to content

MeterValue with "d" suffix not parsed as Duration for timer #28302

@bespaltovyj

Description

@bespaltovyj

Spring Boot Version 2.4.8

If you specify a value with the suffix d for the timer when setting slo, then it is parsed as a number, not a duration.

Example:

management:
  metrics:
    distribution:
      slo:
        <YOUR_TIMER_NAME>: 1d, 2d, 3d

The values of the baskets will be 1, 2 ,3, but required 86400s, 172800s, 259200s.

test example

To work around this problem, I specify the duration in hours.

Metadata

Metadata

Assignees

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions