Package org.glassfish.jersey.server
Class TracingUtils
java.lang.Object
org.glassfish.jersey.server.TracingUtils
Utilities for tracing support.
- Since:
- 2.3
- Author:
- Libor Kramolis
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
initTracingSupport
(TracingConfig type, TracingLogger.Level appThreshold, ContainerRequest containerRequest) According to configuration/request header it initializeTracingLogger
and put it to the request properties.static void
logStart
(ContainerRequest request) Log tracing messages START events.
-
Method Details
-
initTracingSupport
public static void initTracingSupport(TracingConfig type, TracingLogger.Level appThreshold, ContainerRequest containerRequest) According to configuration/request header it initializeTracingLogger
and put it to the request properties.- Parameters:
type
- application-wide tracing configuration type.appThreshold
- application-wide tracing level threshold.containerRequest
- request instance to get runtime properties to storeTracingLogger
instance to if tracing support is enabled for the request.
-
logStart
Log tracing messages START events.- Parameters:
request
- container request instance to get runtime properties to check if tracing support is enabled for the request.
-