/** * According to configuration/request header it initialize {@link TracingLogger} and put it to the request properties. * * @param type application-wide tracing configuration type. * @param appThreshold application-wide tracing level threshold. * @param containerRequest request instance to get runtime properties to store {@link TracingLogger} instance to * if tracing support is enabled for the request. */ public static void initTracingSupport(TracingConfig type, TracingLogger.Level appThreshold, ContainerRequest containerRequest) { final TracingLogger tracingLogger; if (isTracingSupportEnabled(type, containerRequest)) { tracingLogger = TracingLogger.create( getTracingThreshold(appThreshold, containerRequest), getTracingLoggerNameSuffix(containerRequest)); } else { tracingLogger = TracingLogger.empty(); } containerRequest.setProperty(TracingLogger.PROPERTY_NAME, tracingLogger); }
/** * According to configuration/request header it initialize {@link TracingLogger} and put it to the request properties. * * @param type application-wide tracing configuration type. * @param appThreshold application-wide tracing level threshold. * @param containerRequest request instance to get runtime properties to store {@link TracingLogger} instance to * if tracing support is enabled for the request. */ public static void initTracingSupport(TracingConfig type, TracingLogger.Level appThreshold, ContainerRequest containerRequest) { final TracingLogger tracingLogger; if (isTracingSupportEnabled(type, containerRequest)) { tracingLogger = TracingLogger.create( getTracingThreshold(appThreshold, containerRequest), getTracingLoggerNameSuffix(containerRequest)); } else { tracingLogger = TracingLogger.empty(); } containerRequest.setProperty(TracingLogger.PROPERTY_NAME, tracingLogger); }
/** * According to configuration/request header it initialize {@link TracingLogger} and put it to the request properties. * * @param type application-wide tracing configuration type. * @param appThreshold application-wide tracing level threshold. * @param containerRequest request instance to get runtime properties to store {@link TracingLogger} instance to * if tracing support is enabled for the request. */ public static void initTracingSupport(TracingConfig type, TracingLogger.Level appThreshold, ContainerRequest containerRequest) { final TracingLogger tracingLogger; if (isTracingSupportEnabled(type, containerRequest)) { tracingLogger = TracingLogger.create( getTracingThreshold(appThreshold, containerRequest), getTracingLoggerNameSuffix(containerRequest)); } else { tracingLogger = TracingLogger.empty(); } containerRequest.setProperty(TracingLogger.PROPERTY_NAME, tracingLogger); }
/** * According to configuration/request header it initialize {@link TracingLogger} and put it to the request properties. * * @param type application-wide tracing configuration type. * @param appThreshold application-wide tracing level threshold. * @param containerRequest request instance to get runtime properties to store {@link TracingLogger} instance to * if tracing support is enabled for the request. */ public static void initTracingSupport(TracingConfig type, TracingLogger.Level appThreshold, ContainerRequest containerRequest) { final TracingLogger tracingLogger; if (isTracingSupportEnabled(type, containerRequest)) { tracingLogger = TracingLogger.create( getTracingThreshold(appThreshold, containerRequest), getTracingLoggerNameSuffix(containerRequest)); } else { tracingLogger = TracingLogger.empty(); } containerRequest.setProperty(TracingLogger.PROPERTY_NAME, tracingLogger); }
/** * According to configuration/request header it initialize {@link TracingLogger} and put it to the request properties. * * @param type application-wide tracing configuration type. * @param appThreshold application-wide tracing level threshold. * @param containerRequest request instance to get runtime properties to store {@link TracingLogger} instance to * if tracing support is enabled for the request. */ public static void initTracingSupport(TracingConfig type, TracingLogger.Level appThreshold, ContainerRequest containerRequest) { final TracingLogger tracingLogger; if (isTracingSupportEnabled(type, containerRequest)) { tracingLogger = TracingLogger.create( getTracingThreshold(appThreshold, containerRequest), getTracingLoggerNameSuffix(containerRequest)); } else { tracingLogger = TracingLogger.empty(); } containerRequest.setProperty(TracingLogger.PROPERTY_NAME, tracingLogger); }
/** * According to configuration/request header it initialize {@link TracingLogger} and put it to the request properties. * * @param type application-wide tracing configuration type. * @param appThreshold application-wide tracing level threshold. * @param containerRequest request instance to get runtime properties to store {@link TracingLogger} instance to * if tracing support is enabled for the request. */ public static void initTracingSupport(TracingConfig type, TracingLogger.Level appThreshold, ContainerRequest containerRequest) { final TracingLogger tracingLogger; if (isTracingSupportEnabled(type, containerRequest)) { tracingLogger = TracingLogger.create( getTracingThreshold(appThreshold, containerRequest), getTracingLoggerNameSuffix(containerRequest)); } else { tracingLogger = TracingLogger.empty(); } containerRequest.setProperty(TracingLogger.PROPERTY_NAME, tracingLogger); }
/** * According to configuration/request header it initialize {@link TracingLogger} and put it to the request properties. * * @param type application-wide tracing configuration type. * @param appThreshold application-wide tracing level threshold. * @param containerRequest request instance to get runtime properties to store {@link TracingLogger} instance to * if tracing support is enabled for the request. */ public static void initTracingSupport(TracingConfig type, TracingLogger.Level appThreshold, ContainerRequest containerRequest) { final TracingLogger tracingLogger; if (isTracingSupportEnabled(type, containerRequest)) { tracingLogger = TracingLogger.create( getTracingThreshold(appThreshold, containerRequest), getTracingLoggerNameSuffix(containerRequest)); } else { tracingLogger = TracingLogger.empty(); } containerRequest.setProperty(TracingLogger.PROPERTY_NAME, tracingLogger); }