Merged 2.2.x

This commit is contained in:
Marcin Grzejszczak
2020-12-03 18:20:48 +01:00
parent f3b384a8aa
commit eea32b48b3
8 changed files with 330 additions and 91 deletions

View File

@@ -272,6 +272,20 @@ If you want to customize the way tracing context is read from and written to mes
* `Propagator.Setter<MessageHeaderAccessor>` - for writing headers to the message
* `Propagator.Getter<MessageHeaderAccessor>` - for reading headers from the message
[[sleuth-messaging-spring-integration-customization]]
==== Spring Integration Customization
==== Customizing messaging spans
In order to change the default span names and tags, just register a bean of type `MessageSpanCustomizer`. You can also
override the existing `DefaultMessageSpanCustomizer` to extend the existing behaviour.
[source,java]
----
@Component
include::{common_tests_path}/src/main/java/org/springframework/cloud/sleuth/instrument/messaging/TracingChannelInterceptorTest.java[tags=message_span_customizer,indent=2]
----
[[sleuth-messaging-spring-cloud-function-integration]]
=== Spring Cloud Function and Spring Cloud Stream