-
Notifications
You must be signed in to change notification settings - Fork 33
Description
The current priority of ServerTracingFilter is set at Priorities.HEADER_DECORATOR.
I don't think that is right for this library. I'm expecting this library to initialize tracing for a request and that should happen very early in the request. My expectation is that the entire request is instrumented including Authentication and Authorization filters.
Where this should fit is a little fuzzy, ContainerRequestFilter implementations that don't fit the mold in javax.ws.rs.Priorities were using Integer.MIN_VALUE. (I just looked at library implementations on my classpath), that included org.glassfish.jersey.logging.ServerLoggingFilter and another logging filter in a less common library.
Assuming no one will ever need to run before you is a little rude so I'd propose a priority of -1000. This is before most application code and all of javax.ws.rs.Priorities, I propose a number below 0 because application code I've seen commonly uses 0 to mean me first.