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

fix: Wrong use of Micrometer metrics #244

Merged
merged 5 commits into from
May 20, 2020
Merged

Conversation

jakubjanecek
Copy link
Collaborator

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 of F which allows you to measure and record time it took.

feat: New sst-cats-effect subproject with F.time method
@jakubjanecek jakubjanecek added bug Something isn't working feature New feature or request labels May 19, 2020
@jakubjanecek jakubjanecek requested review from jendakol and hanny24 May 19, 2020 11:37
@jakubjanecek jakubjanecek self-assigned this May 19, 2020
@sideeffffect
Copy link
Contributor

problem with Scalafix and Scala 2.13

That's an unfortunate development. Was that a particular rule? Is there an error message from logs somewhere to investigate?
Or is that something that is a known/reported bug?

@jakubjanecek
Copy link
Collaborator Author

It's this bug: scalacenter/scalafix#1125

It was encountered not only in SST but also in our internal projects.

@jakubjanecek jakubjanecek requested a review from hanny24 May 19, 2020 12:57
@jakubjanecek jakubjanecek added the mergify-wait Force Mergify to wait with automatic merging label May 19, 2020
Copy link
Contributor

@hanny24 hanny24 left a 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?

@jakubjanecek jakubjanecek requested a review from hanny24 May 20, 2020 11:24
@jakubjanecek
Copy link
Collaborator Author

Yes. I've separated it into a standalone function.

@jakubjanecek jakubjanecek removed the mergify-wait Force Mergify to wait with automatic merging label May 20, 2020
@mergify mergify bot merged commit 8443468 into master May 20, 2020
@mergify mergify bot deleted the fix/micrometer-metrics branch May 20, 2020 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature New feature or request
Development

Successfully merging this pull request may close these issues.

4 participants