Without any Accept header, the aop-prometheus endpoint returns a successful response
orca> wget -S http://localhost:8083/aop-prometheus
Connecting to localhost:8083 ([::1]:8083)
HTTP/1.1 200
Content-Type: text/plain; version=0.0.4;charset=utf-8
Content-Length: 31287
...
When using the Accept a 406 error response is returned
orca> wget -S --header 'Accept: text/plain; version=0.0.4' http://localhost:8083/aop-prometheus
Connecting to localhost:8083 ([::1]:8083)
HTTP/1.1 406
wget: server returned error: HTTP/1.1 406
The prometheus spring-boot WebEndpoint doesn't have this issue. Looking at the code for the aop endpoint, the Accept header may not have been implemented due to issues with plugins/WebEndpoint
Without any
Acceptheader, theaop-prometheusendpoint returns a successful responseWhen using the
Accepta 406 error response is returnedThe prometheus spring-boot WebEndpoint doesn't have this issue. Looking at the code for the aop endpoint, the Accept header may not have been implemented due to issues with plugins/WebEndpoint