Java Code Examples for brave.propagation.Propagation#Setter

The following examples show how to use brave.propagation.Propagation#Setter . 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: TracingChannelInterceptor.java    From spring-cloud-sleuth with Apache License 2.0 6 votes vote down vote up
TracingChannelInterceptor(Tracing tracing,
		Propagation.Setter<MessageHeaderAccessor, String> setter,
		Propagation.Getter<MessageHeaderAccessor, String> getter) {
	this.tracing = tracing;
	this.tracer = tracing.tracer();
	this.threadLocalSpan = ThreadLocalSpan.create(this.tracer);
	this.injector = tracing.propagation().injector(setter);
	this.extractor = tracing.propagation().extractor(getter);
	this.integrationObjectSupportPresent = ClassUtils.isPresent(
			"org.springframework.integration.context.IntegrationObjectSupport", null);
	this.hasDirectChannelClass = ClassUtils
			.isPresent("org.springframework.integration.channel.DirectChannel", null);
	this.directWithAttributesChannelClass = ClassUtils
			.isPresent(STREAM_DIRECT_CHANNEL, null)
					? ClassUtils.resolveClassName(STREAM_DIRECT_CHANNEL, null) : null;
}
 
Example 2
Source File: TraceSpringIntegrationAutoConfiguration.java    From spring-cloud-sleuth with Apache License 2.0 5 votes vote down vote up
@Bean
TracingChannelInterceptor traceChannelInterceptor(Tracing tracing,
		Propagation.Setter<MessageHeaderAccessor, String> traceMessagePropagationSetter,
		Propagation.Getter<MessageHeaderAccessor, String> traceMessagePropagationGetter) {
	return new TracingChannelInterceptor(tracing, traceMessagePropagationSetter,
			traceMessagePropagationGetter);
}
 
Example 3
Source File: TraceSpringMessagingAutoConfiguration.java    From spring-cloud-sleuth with Apache License 2.0 4 votes vote down vote up
@Bean
@ConditionalOnMissingBean
Propagation.Setter<MessageHeaderAccessor, String> traceMessagePropagationSetter() {
	return MessageHeaderPropagation.INSTANCE;
}
 
Example 4
Source File: MessageHeaderPropagationTest.java    From spring-cloud-sleuth with Apache License 2.0 4 votes vote down vote up
@Override
protected Propagation.Setter<MessageHeaderAccessor, String> setter() {
	return MessageHeaderPropagation.INSTANCE;
}
 
Example 5
Source File: MessageHeaderPropagation_NativeTest.java    From spring-cloud-sleuth with Apache License 2.0 4 votes vote down vote up
@Override
protected Propagation.Setter<MessageHeaderAccessor, String> setter() {
	return MessageHeaderPropagation.INSTANCE;
}
 
Example 6
Source File: CustomTraceIdPropagation.java    From brave with Apache License 2.0 4 votes vote down vote up
@Override public <R> Injector<R> injector(Propagation.Setter<R, String> setter) {
  return delegate.injector(setter);
}
 
Example 7
Source File: KafkaConsumerRequestSetterTest.java    From brave with Apache License 2.0 4 votes vote down vote up
@Override protected Propagation.Setter<KafkaConsumerRequest, String> setter() {
  return KafkaConsumerRequest.SETTER;
}
 
Example 8
Source File: PropagationSetterTest.java    From spring-cloud-sleuth with Apache License 2.0 votes vote down vote up
protected abstract Propagation.Setter<C, K> setter(); 
Example 9
Source File: PropagationSetterTest.java    From brave with Apache License 2.0 votes vote down vote up
protected abstract Propagation.Setter<R, String> setter();