Example usage for org.springframework.messaging.support ExecutorChannelInterceptor interface-usage

List of usage examples for org.springframework.messaging.support ExecutorChannelInterceptor interface-usage

Introduction

In this page you can find the example usage for org.springframework.messaging.support ExecutorChannelInterceptor interface-usage.

Usage

From source file org.springframework.cloud.sleuth.instrument.messaging.TracingChannelInterceptor.java

/**
 * This starts and propagates {@link Span.Kind#PRODUCER} span for each message sent (via
 * native headers. It also extracts or creates a {@link Span.Kind#CONSUMER} span for each
 * message received. This span is injected onto each message so it becomes the parent when
 * a handler later calls {@link MessageHandler#handleMessage(Message)}, or a another
 * processing library calls {@link #nextSpan(Message)}.