zipkin-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-zipkin-brave] adriancole commented on a change in pull request #904: Messaging adapter
Date Mon, 20 May 2019 13:33:27 GMT
adriancole commented on a change in pull request #904: Messaging adapter
URL: https://github.com/apache/incubator-zipkin-brave/pull/904#discussion_r285594257
 
 

 ##########
 File path: instrumentation/messaging/src/main/java/brave/messaging/MessagingConsumerHandler.java
 ##########
 @@ -0,0 +1,119 @@
+package brave.messaging;
+
+import brave.Span;
+import brave.SpanCustomizer;
+import brave.Tracing;
+import brave.propagation.TraceContext;
+import brave.propagation.TraceContextOrSamplingFlags;
+import java.util.List;
+import java.util.Map;
+
+public class MessagingConsumerHandler<C, Chan, Msg>
+    extends MessagingHandler<Chan, Msg, ChannelAdapter<Chan>, MessageAdapter<Msg>>
{
+
+  static public <C, Chan, Msg> MessagingConsumerHandler<C, Chan, Msg> create(
+      C delegate,
+      MessagingTracing tracing,
+      ChannelAdapter<Chan> channelAdapter,
+      MessageConsumerAdapter<Msg> messageAdapter,
+      TraceContext.Extractor<Msg> extractor,
+      TraceContext.Injector<Msg> injector) {
+    return new MessagingConsumerHandler<>(delegate, tracing, channelAdapter, messageAdapter,
+        extractor, injector);
+  }
+
+  public final C delegate;
+  final Tracing tracing;
+
+  public MessagingConsumerHandler(
+      C delegate,
 
 Review comment:
   I personally don't think we should make anything that hints these should be wrappers as
this part isn't important (ex whether we are wrapping something or extending etc)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@zipkin.apache.org
For additional commands, e-mail: dev-help@zipkin.apache.org


Mime
View raw message