Skip to content
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

Conversation

mateuszrzeszutek
Copy link
Member

Another one inspired by #5292

@mateuszrzeszutek mateuszrzeszutek requested a review from a team as a code owner February 3, 2022 17:48
tasks {
val testBaseTimeUnit by registering(Test::class) {
filter {
includeTestsMatching("*TimerSecondsTest")
Copy link
Contributor

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.

Comment on lines +34 to +38
case "min":
case "minutes":
Copy link
Member

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?

Copy link
Member Author

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

@mateuszrzeszutek mateuszrzeszutek merged commit 0b7f466 into open-telemetry:main Feb 8, 2022
@mateuszrzeszutek mateuszrzeszutek deleted the micrometer-base-time-unit branch February 8, 2022 09:39
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
…ridge (open-telemetry#5304)

* Make it possible to configure base time unit used by the Micrometer bridge

* add readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants