Add some space between the trace filter and the end of the chain

This commit is contained in:
Dave Syer 2014-12-02 11:13:52 +00:00
parent 8520554eb2
commit 9de82f9c69
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ public class WebRequestTraceFilter extends OncePerRequestFilter implements Order
private boolean dumpRequests = false;
private int order = Integer.MAX_VALUE;
// Not LOWEST_PRECEDENCE, but near the end, so it has a good chance of catching all
// enriched headers, but users can add stuff after this if they want to
private int order = Ordered.LOWEST_PRECEDENCE - 10;
private final TraceRepository traceRepository;