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

Missing metrics when using setServerRequestTagsProvider with a different set of tags for different requests #173

Closed
mervyn-mccreight opened this issue Mar 9, 2023 · 8 comments
Labels
invalid This doesn't seem right

Comments

@mervyn-mccreight
Copy link

mervyn-mccreight commented Mar 9, 2023

Version

  • 4.3.3
  • 4.4.0

Context

When using one Vertx instance with metrics included to host a http-server with Kotlin and Coroutines and a ServerRequestTagsProvider that returns different Tags (key + value is different) for different type of requests, metrics are missing.

Do you have a reproducer?

Steps to reproduce

Just execute the AppTest.catchMetrics test and you can see the output of the metrics.
I'd expect metrics for all GET and POST requests, but the POST request metrics are missing.
If you change the ServerRequestTagsProvider to e.g. return a Tag with the same key, but different values for different requests, the metrics are there. The same goes when you completely remove the ServerRequestTagsProvider.

Extra

  • OS: MacOS, but the same happens on a linux machine
  • JVM version: Tested with 17 and 19. Was able to reproduce the same behaviour with both versions.
@mervyn-mccreight mervyn-mccreight added the bug Something isn't working label Mar 9, 2023
@tsegismont tsegismont self-assigned this Mar 10, 2023
@tsegismont tsegismont added this to the 4.4.1 milestone Mar 10, 2023
@mervyn-mccreight
Copy link
Author

mervyn-mccreight commented Mar 10, 2023

Actually I think the example can actually be simplified even further.
You do not need two verticles to reproduce it, one is enough.

Just have a tags-provider that returns a different set of tags for different requests for a single verticle.
I'll try to simplify the example to narrow it down.

/edit: I was able to reproduce the same behavior on a simplified example. I updated the sample project for reproduction and I'll update the description if the issue.

@tsegismont
Copy link
Contributor

tsegismont commented Mar 10, 2023 via email

@mervyn-mccreight
Copy link
Author

There may be a connection to micrometer-metrics/micrometer#3508
I'll try to investigate further and find out if this is really depending on vert.x or if it is an issue with micrometer-metrics.
I don't know if that is intended behaviour though, but I wouldn't know why it should be.

@mervyn-mccreight
Copy link
Author

Seeing micrometer-metrics/micrometer#877 I'm pretty sure it is a problem with the micrometer implementation.

@tsegismont
Copy link
Contributor

Right, thanks for the update. Let's keep the issue open until the upstream issue comes to a resolution.

@tsegismont tsegismont removed their assignment Mar 24, 2023
@tsegismont tsegismont removed this from the 4.4.1 milestone Mar 24, 2023
@tsegismont tsegismont added invalid This doesn't seem right and removed bug Something isn't working labels Oct 16, 2023
@tsegismont
Copy link
Contributor

Closing as there's nothing we can do. Workaround in this comment: micrometer-metrics/micrometer#877 (comment)

@tsegismont tsegismont closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2023
@mervyn-mccreight
Copy link
Author

@tsegismont is it okay from your side when I delete the reproducer repository then? :)

@tsegismont
Copy link
Contributor

Fine with me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Development

No branches or pull requests

2 participants