-
Notifications
You must be signed in to change notification settings - Fork 16
Request Tracing
Mihail Kuznetsov edited this page Mar 16, 2015
·
4 revisions
Request Tracing
Since version 1.0.2 EverRest supports tracing of the client's request. Tracing may help to understand what goes wrong with RESTful service, why it does not work as developer expected.
Tracing feature may be enabled by adding query parameter tracing=true
to the request URL. After that framework starts to watch after client request and add useful information to the response headers. So even if request failed client will be able to see the steps of request processing in the headers. Headers with the trace information have name EverRest-Trace-XXX
where XXX
is the ordered number. Information about next steps may be added:
- Override HTTP method from
X-HTTP-Method-Override
header (if such header presents) - Root resource selected.
- Resource method, sub-resource method or sub-resource locator selected.
- Selected MessageBodyReader.
- Selected MessageBodyWriter.
- Selected ExceptionMapper if any error occurs.
- Error messages if exceptions occurs when RESTful method invoked.
Here is example of tracing request to one the samples.