-
Notifications
You must be signed in to change notification settings - Fork 579
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
JSON-Binding breaks prometheus metrics format #645
Comments
The string is wrapped in quotes and end of line characters are removed. |
Hi, @tomas-langer; should this be special-cased? As you can see from the code there's nothing special going on. You added Should there be some way for |
Maybe a quick fix would be to change But we do have a general problem here. Metrics (and Health and others) can't know or care about what media support the user has registered. And the media support the user has registered should not impact these built-in services (since they likely hand craft their responses). So we either need a way to suppress the media support per response, or do something like having specific entity/writers for these built in services so the selection of the appropriate writer is unambiguous. Or maybe a |
My first solution would be to ignore |
The bookstore functional test did not catch this since it only checks metrics with the JSON-P support configured. I'll update the test to run with JSON-B and Jackson as well. |
JacksonSupport has the same problem. |
See PR #669 |
When I enable
JsonBindingSupport
for the webserver routing andMetricsSupport
:The clear-text Prometheus format is broken:
Expected output:
Environment Details
The text was updated successfully, but these errors were encountered: