-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Spring Integration 6.2 to 6.3 Migration Guide
- Removal of deprecated API
- AMQP
delaymessage property as long - Removal of
spring-integration-securitymodules - The
ObservationPropagationChannelInterceptoris deprecated
The previously @Deprecated(forRemoval = true) API has been removed.
The MessageProperties.delay is now expected to be of long type.
Therefore AmqpHeaders.DELAY header must be set as long.
See https://github.com/spring-projects/spring-amqp/issues/2602 for more information.
Previously deprecated spring-integration-security modules has been remove in favor of SecurityContextChannelInterceptor & SecurityContextPropagationChannelInterceptor from the spring-security-messaging module of Spring Security project.
Use implementation 'org.springframework.security:spring-security-messaging' dependency instead.
The ObservationPropagationChannelInterceptor was deprecated for removal in the next 6.4 version as its logic was wrong with an attempt to restore an observation in the subscriber thread side when it is, in most cases, closed on the producer side.
Instead a proper observation must be enabled on the MessageChannel and MessageHandler(s) subscribing to this channel.
This way the sender side will emit a PRODUCER kind span storing a tracing information into message headers.
The message handler side will start a new observation based on the restored tracing information from those headers using a CONSUMER kind span.
Such a propagation mechanism works even with persistent channel and in distributed applications, where the mentioned ObservationPropagationChannelInterceptor is not able to transfer the tracing information over the network.