use of co.elastic.apm.servlet.ApmFilter in project apm-agent-java by elastic.
the class ApmHandlerInterceptorTest method setup.
@BeforeEach
void setup() {
final ElasticApmTracer tracer = ElasticApmTracer.builder().configurationRegistry(SpyConfiguration.createSpyConfig()).build();
this.mockMvc = MockMvcBuilders.standaloneSetup(new TestController(tracer)).addFilters(new ApmFilter(tracer)).addInterceptors(new ApmHandlerInterceptor(tracer)).build();
}
Aggregations