You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Prometheus endpoint that's proposed in #9970 needs to provide an operation that returns text/plain; version=0.0.4; charset=utf-8. There's no way to do so with the current web endpoint infrastructure.
The text was updated successfully, but these errors were encountered:
This is, arguably, also applicable to JMX. At the moment, any response from an endpoint that isn't already a String is serialised into JSON and then returned as a String. Rather than always using JSON, the media type produced by the operation could be used to influence that conversion.
This possible enhancement shouldn't be tackled in this issue, but the design should consider the fact that knowing what media type an operation produces isn't, necessarily, specific to web endpoints.
wilkinsona
changed the title
Allow an operation on a web endpoint to specify the media type that it produces
Allow an operation on an endpoint to specify the media type that it produces
Aug 31, 2017
The Prometheus endpoint that's proposed in #9970 needs to provide an operation that returns
text/plain; version=0.0.4; charset=utf-8
. There's no way to do so with the current web endpoint infrastructure.The text was updated successfully, but these errors were encountered: