Package com.netflix.hystrix

Examples of com.netflix.hystrix.HystrixRequestLog


            }
            chain.doFilter(request, response);
        } finally {
            try {
                if (HystrixRequestContext.isCurrentThreadInitialized()) {
                    HystrixRequestLog log = HystrixRequestLog.getCurrentRequest();
                    logger.info("Hystrix Executions [" + requestURL.toString() + "] => " + log.getExecutedCommandsAsString());
                }
            } catch (Exception e) {
                logger.warn("Unable to append HystrixRequestLog", e);
            }
View Full Code Here


        try {
            chain.doFilter(request, response);
        } finally {
            try {
                if (HystrixRequestContext.isCurrentThreadInitialized()) {
                    HystrixRequestLog log = HystrixRequestLog.getCurrentRequest();
                    if (log != null) {
                        ((HttpServletResponse) response).addHeader("X-HystrixLog", log.getExecutedCommandsAsString());
                    }
                }
            } catch (Exception e) {
                logger.warn("Unable to append HystrixRequestLog", e);
            }
View Full Code Here

TOP

Related Classes of com.netflix.hystrix.HystrixRequestLog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.