-
Notifications
You must be signed in to change notification settings - Fork 869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it possible to configure base time unit used by the Micrometer bridge #5304
Make it possible to configure base time unit used by the Micrometer bridge #5304
Conversation
tasks { | ||
val testBaseTimeUnit by registering(Test::class) { | ||
filter { | ||
includeTestsMatching("*TimerSecondsTest") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JFYI I have been interested in changing the javaVersion type of tests from calling test
to calling check
- I think check.dependsOn(otherTest)
is a bit more idiomatic than test.dependsOn
and avoids this annoying non-trivial boiler plate every time.
case "min": | ||
case "minutes": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these names and abbreviations from micrometer/otel/ucum?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shorter names come from UCUM, the longer ones are just TimeUnit
values lowercased - I thought it would be quite useful to have both
...java/io/opentelemetry/instrumentation/micrometer/v1_5/OpenTelemetryMeterRegistryBuilder.java
Show resolved
Hide resolved
20fc5f1
to
265ce99
Compare
…ridge (open-telemetry#5304) * Make it possible to configure base time unit used by the Micrometer bridge * add readme
Another one inspired by #5292