-
Notifications
You must be signed in to change notification settings - Fork 20
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
fix: Wrong use of Micrometer metrics #244
Conversation
feat: New sst-cats-effect subproject with F.time method
That's an unfortunate development. Was that a particular rule? Is there an error message from logs somewhere to investigate? |
It's this bug: scalacenter/scalafix#1125 It was encountered not only in SST but also in our internal projects. |
cats-effect/src/main/scala/com/avast/sst/catseffect/package.scala
Outdated
Show resolved
Hide resolved
cats-effect/src/main/scala/com/avast/sst/catseffect/syntax/TimeSyntax.scala
Outdated
Show resolved
Hide resolved
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.
So there is no way how to use that method without using provided syntax?
Yes. I've separated it into a standalone function. |
feat: New sst-cats-effect subproject with F.time method
I had a discussion with core Micrometer contributor who pointed our wrong use of the library so I am fixing it with this PR.
I also encountered a problem with Scalafix and Scala 2.13 (I don't know why it hasn't happened before) so I am also disabling Scalafix temporarily.
And the last thing is new
sst-cats-effect
subproject which adds one utility method on top ofF
which allows you to measure and record time it took.