Java Code Examples for com.github.kristofa.brave.Brave#serverRequestInterceptor()
The following examples show how to use
com.github.kristofa.brave.Brave#serverRequestInterceptor() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ZipkinConfig.java From spring-cloud-k8s-sample with Apache License 2.0 | 5 votes |
@Bean public BraveServletFilter braveServletFilter(Brave brave) { /** * 设置sr、ss拦截器 */ return new BraveServletFilter(brave.serverRequestInterceptor(), brave.serverResponseInterceptor(), new DefaultSpanNameProvider()); }
Example 2
Source File: ZipkinConfig.java From spring-cloud-k8s-sample with Apache License 2.0 | 5 votes |
@Bean public BraveServletFilter braveServletFilter(Brave brave) { /** * 设置sr、ss拦截器 */ return new BraveServletFilter(brave.serverRequestInterceptor(), brave.serverResponseInterceptor(), new DefaultSpanNameProvider()); }
Example 3
Source File: ZipkinConfig.java From spring-cloud-k8s-sample with Apache License 2.0 | 5 votes |
@Bean public BraveServletFilter braveServletFilter(Brave brave) { /** * 设置sr、ss拦截器 */ return new BraveServletFilter(brave.serverRequestInterceptor(), brave.serverResponseInterceptor(), new DefaultSpanNameProvider()); }
Example 4
Source File: ZipkinConfig.java From spring-cloud-k8s-sample with Apache License 2.0 | 5 votes |
@Bean public BraveServletFilter braveServletFilter(Brave brave) { /** * 设置sr、ss拦截器 */ return new BraveServletFilter(brave.serverRequestInterceptor(), brave.serverResponseInterceptor(), new DefaultSpanNameProvider()); }
Example 5
Source File: TracingServletRegistrary.java From x7 with Apache License 2.0 | 5 votes |
@ConditionalOnMissingBean(BraveServletFilter.class) @ConditionalOnBean(Brave.class) @Bean public BraveServletFilter braveServletFilter(Brave brave) { return new BraveServletFilter(brave.serverRequestInterceptor(), brave.serverResponseInterceptor(), new DefaultSpanNameProvider()); }
Example 6
Source File: MSF4JZipkinTracingInterceptor.java From msf4j with Apache License 2.0 | 5 votes |
/** * Constructor of the MSF4JTracingInterceptor. * * @param microServiceName Name of the Microservice * @param zipkinUrl Base URL of the Zipkin server */ public MSF4JZipkinTracingInterceptor(String microServiceName, String zipkinUrl) { Brave.Builder builder = new Brave.Builder(microServiceName); builder.spanCollector(HttpSpanCollector.create(zipkinUrl, new EmptySpanCollectorMetricsHandler())); Brave brave = builder.build(); reqInterceptor = brave.serverRequestInterceptor(); respInterceptor = brave.serverResponseInterceptor(); }