public class BeelineHandlerInterceptor
extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
SpringServletFilter
and requires it to have set up the thread local
context via the Tracer.
The purpose of this is to add additional fields to the web application's "root" Span that are not yet available within a Servlet Filter. Namely, information about the handler mapping.
For details about the execution flow see the Javadoc of the super classes and the SpringServletFilter
.
Constructor | Description |
---|---|
BeelineHandlerInterceptor(Tracer tracer,
SpanBuilderFactory factory) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler) |
public BeelineHandlerInterceptor(Tracer tracer, SpanBuilderFactory factory)
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler)
preHandle
in class org.springframework.web.servlet.handler.HandlerInterceptorAdapter
Copyright © 2019–2020 Honeycomb. All rights reserved.