org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurationSupport Java Examples

The following examples show how to use org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurationSupport. 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: WebsocketAutoConfiguration.java    From java-spring-cloud with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnBean(WebSocketMessageBrokerConfigurationSupport.class)
public TracingChannelInterceptor tracingInboundChannelInterceptor(
    WebSocketMessageBrokerConfigurationSupport config) {
  TracingChannelInterceptor interceptor = new TracingChannelInterceptor(tracer,
      Tags.SPAN_KIND_SERVER);
  config.clientInboundChannel().addInterceptor(interceptor);
  return interceptor;
}
 
Example #2
Source File: WebsocketAutoConfiguration.java    From java-spring-cloud with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnBean(WebSocketMessageBrokerConfigurationSupport.class)
public TracingChannelInterceptor tracingOutboundChannelInterceptor(
    WebSocketMessageBrokerConfigurationSupport config) {
  TracingChannelInterceptor interceptor = new TracingChannelInterceptor(tracer,
      Tags.SPAN_KIND_CLIENT);
  config.clientOutboundChannel().addInterceptor(interceptor);
  return interceptor;
}