X-Jersey-Tracing-Accept – used to enable the tracing support for the particular request. It is applied only when the application-level tracing support is configured to ON_DEMAND mode. The value of the header is not used by the Jersey tracing facility and as such it can be any arbitrary (even empty) string.
By setting the first property to ON_DEMAND means you have to enable tracing on a per request basis by setting a http header called X-Jersey-Tracing-Accept – the value doesn’t matter. If you want trace on for every request, then set the property to ALL instead of ON_DEMAND then you won’t need this header.
I enabled the logger in my logback.xml (I have configured Payara to use logback), and I see the full trace info in my server log when I enable it on demand by adding the X-Jersey-Tracing-Accept header to my request, but then I get the exception. When I don’t add the header to the request everything works but of course I don’t get the trace.
11/16/2013 · X-Jersey-Tracing-Accept – used to enable the tracing support for the particular request. It is applied only when the application-level tracing support is configured to ON_DEMAND mode. The value of the header is not used by the Jersey tracing facility and.
I’ve been writing RESTful Web service. The technologies that I use: Glassfish 4, JDK 8 & Jersey (part of glassfish). To troubleshoot an issue, I want to enable trace logging done by jersey cla…
Event Listeners. Event listeners allow users to receive and process a predefined set of events that occur during a application lifecycle (such as application initialization, application destroy) as well as request processing lifecycle events (request started, resource method finished, exception thrown, etc.).
11/15/2013 · ON_DEMAND – tracing support is in a stand-by mode; it is enabled selectively per request, via a special X-Jersey-Tracing-Accept HTTP request header. ALL – tracing support is enabled for all request. The level of detail of the information provided by Jersey tracing facility – the tracing threshold – can be customized.
The ReST calls in the script use the enhanced trace logging provided by the Jersey Rest system. If developing your own ReST calls into the system, using the X-Jersey-Tracing-Accept :whatever and X-Jersey-Tracing-Threshold:TRACE headers can help diagnose path problems.