Skip to content

Instantly share code, notes, and snippets.

@mansu
Created April 19, 2016 08:18
Show Gist options
  • Save mansu/f4bd1d1ad83a3a651ae035e6f0860337 to your computer and use it in GitHub Desktop.
Save mansu/f4bd1d1ad83a3a651ae035e6f0860337 to your computer and use it in GitHub Desktop.
test spans
TraceId(Some(1faf0a8e2cf9dc18), None, 0000000000000000, Some(true), Flags(0))com.twitter.finagle.tracing.TraceId.<init>(Id.scala:128)
com.twitter.finagle.thrift.RichRequestHeader$.traceId$extension(RichRequestHeader.scala:37)
com.twitter.finagle.thrift.TTwitterServerFilter.apply(TTwitterServerFilter.scala:46)
com.twitter.finagle.thrift.TTwitterServerFilter.apply(TTwitterServerFilter.scala:11)
com.twitter.finagle.Filter$$anon$7.apply(Filter.scala:52)
com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:72)
com.twitter.finagle.Service$$anon$2.apply(Service.scala:14)
com.twitter.finagle.tracing.TraceInitializerFilter$$anonfun$apply$4.apply(TraceInitializerFilter.scala:101)
com.twitter.finagle.tracing.TraceInitializerFilter$$anonfun$apply$4.apply(TraceInitializerFilter.scala:101)
com.twitter.util.Local.let(Local.scala:131)
com.twitter.finagle.context.Context$class.let(Context.scala:151)
com.twitter.finagle.context.LocalContext.let(LocalContext.scala:8)
com.twitter.finagle.tracing.Trace$.letTracer(Trace.scala:181)
com.twitter.finagle.tracing.TraceInitializerFilter.apply(TraceInitializerFilter.scala:101)
com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:72)
com.twitter.finagle.Service$$anon$2.apply(Service.scala:14)
com.twitter.finagle.filter.MonitorFilter$$anonfun$apply$1.apply(MonitorFilter.scala:32)
com.twitter.finagle.filter.MonitorFilter$$anonfun$apply$1.apply(MonitorFilter.scala:32)
com.twitter.util.Future$$anonfun$monitored$1.apply$mcV$sp(Future.scala:140)
com.twitter.util.Monitor$$anonfun$apply$1.apply$mcV$sp(Monitor.scala:38)
com.twitter.util.Monitor$$anonfun$apply$1.apply(Monitor.scala:38)
com.twitter.util.Monitor$$anonfun$apply$1.apply(Monitor.scala:38)
com.twitter.util.Monitor$$anonfun$using$1.apply(Monitor.scala:103)
com.twitter.util.Monitor$.restoring(Monitor.scala:110)
com.twitter.util.Monitor$.using(Monitor.scala:101)
com.twitter.util.Monitor$class.apply(Monitor.scala:37)
com.twitter.util.Monitor$$anon$1.apply(Monitor.scala:142)
com.twitter.util.Future$.monitored(Future.scala:139)
com.twitter.finagle.filter.MonitorFilter.apply(MonitorFilter.scala:31)
com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:72)
com.twitter.finagle.dispatch.SerialServerDispatcher.dispatch(ServerDispatcher.scala:107)
com.twitter.finagle.dispatch.GenSerialServerDispatcher$$anonfun$com$twitter$finagle$dispatch$GenSerialServerDispatcher$$loop$1.apply(ServerDispatcher.scala:51)
com.twitter.finagle.dispatch.GenSerialServerDispatcher$$anonfun$com$twitter$finagle$dispatch$GenSerialServerDispatcher$$loop$1.apply(ServerDispatcher.scala:45)
com.twitter.util.Future$$anonfun$flatMap$1.apply(Future.scala:893)
com.twitter.util.Future$$anonfun$flatMap$1.apply(Future.scala:892)
com.twitter.util.Promise$Transformer.liftedTree1$1(Promise.scala:100)
com.twitter.util.Promise$Transformer.k(Promise.scala:100)
com.twitter.util.Promise$Transformer.apply(Promise.scala:110)
com.twitter.util.Promise$Transformer.apply(Promise.scala:91)
com.twitter.util.Promise$$anon$2.run(Promise.scala:352)
com.twitter.concurrent.LocalScheduler$Activation.run(Scheduler.scala:187)
com.twitter.concurrent.LocalScheduler$Activation.submit(Scheduler.scala:158)
com.twitter.concurrent.LocalScheduler.submit(Scheduler.scala:216)
com.twitter.concurrent.Scheduler$.submit(Scheduler.scala:84)
com.twitter.util.Promise.runq(Promise.scala:338)
com.twitter.util.Promise.updateIfEmpty(Promise.scala:669)
com.twitter.util.Promise.update(Promise.scala:642)
com.twitter.util.Promise.setValue(Promise.scala:618)
com.twitter.concurrent.AsyncQueue.offer(AsyncQueue.scala:76)
com.twitter.finagle.transport.ChannelTransport.handleUpstream(ChannelTransport.scala:50)
. . .
TraceId(Some(1faf0a8e2cf9dc18), Some(0000000000000000), b7a8dec78a7d8cca, Some(true), Flags(0))com.twitter.finagle.tracing.TraceId.<init>(Id.scala:128)
com.twitter.finagle.tracing.Trace$.nextId(Trace.scala:143)
com.twitter.finagle.tracing.Trace$.letTracerAndNextId(Trace.scala:194)
com.twitter.finagle.tracing.TraceInitializerFilter.apply(TraceInitializerFilter.scala:99)
com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:72)
com.twitter.finagle.Service$$anon$2.apply(Service.scala:14)
com.twitter.finagle.service.TimeoutFilter$$anonfun$apply$2.apply(TimeoutFilter.scala:101)
com.twitter.finagle.service.TimeoutFilter$$anonfun$apply$2.apply(TimeoutFilter.scala:100)
com.twitter.util.Local.let(Local.scala:131)
com.twitter.finagle.context.Context$class.let(Context.scala:151)
com.twitter.finagle.context.MarshalledContext.let(Context.scala:184)
com.twitter.finagle.service.TimeoutFilter.apply(TimeoutFilter.scala:100)
com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:72)
com.twitter.finagle.Service$$anon$2.apply(Service.scala:14)
com.twitter.finagle.filter.ExceptionSourceFilter.apply(ExceptionSourceFilter.scala:33)
com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:72)
com.twitter.finagle.FactoryToService$$anonfun$apply$4.apply(Service.scala:314)
com.twitter.finagle.FactoryToService$$anonfun$apply$4.apply(Service.scala:313)
com.twitter.util.Future$$anonfun$flatMap$1.apply(Future.scala:893)
com.twitter.util.Future$$anonfun$flatMap$1.apply(Future.scala:892)
com.twitter.util.Promise$Transformer.liftedTree1$1(Promise.scala:100)
com.twitter.util.Promise$Transformer.k(Promise.scala:100)
com.twitter.util.Promise$Transformer.apply(Promise.scala:110)
com.twitter.util.Promise$Transformer.apply(Promise.scala:91)
com.twitter.util.Promise$$anon$2.run(Promise.scala:352)
com.twitter.concurrent.LocalScheduler$Activation.run(Scheduler.scala:187)
com.twitter.concurrent.LocalScheduler$Activation.submit(Scheduler.scala:158)
com.twitter.concurrent.LocalScheduler.submit(Scheduler.scala:216)
com.twitter.concurrent.Scheduler$.submit(Scheduler.scala:84)
com.twitter.util.Promise.runq(Promise.scala:338)
com.twitter.util.Promise.updateIfEmpty(Promise.scala:669)
com.twitter.util.Promise.update(Promise.scala:642)
com.twitter.util.Promise.setValue(Promise.scala:618)
com.twitter.concurrent.AsyncQueue.offer(AsyncQueue.scala:76)
com.twitter.finagle.transport.ChannelTransport.handleUpstream(ChannelTransport.scala:50)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
org.jboss.netty.channel.SimpleChannelHandler.messageReceived(SimpleChannelHandler.java:142)
org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
org.jboss.netty.channel.SimpleChannelHandler.messageReceived(SimpleChannelHandler.java:142)
com.twitter.finagle.channel.ChannelRequestStatsHandler.messageReceived(ChannelRequestStatsHandler.scala:35)
org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
. . .
SpanId(1faf0a8e2cf9dc18.b7a8dec78a7d8cca<:0000000000000000, Some(client), Some(ping), ArrayBuffer(ZipkinAnnotation(2016-04-19 04:04:26 +0000,cs,Endpoint(0,0),None), ZipkinAnnotation(2016-04-19 04:04:26 +0000,cr,Endpoint(0,0),None)), ArrayBuffer(BinaryAnnotation(clnt/finagle.version,java.nio.HeapByteBuffer[pos=0 lim=6 cap=6],STRING,Endpoint(0,0)), BinaryAnnotation(ca,java.nio.HeapByteBuffer[pos=0 lim=1 cap=1],BOOL,Endpoint(167864339,-8928)), BinaryAnnotation(sa,java.nio.HeapByteBuffer[pos=0 lim=1 cap=1],BOOL,Endpoint(167874570,8090)), BinaryAnnotation(ca,java.nio.HeapByteBuffer[pos=0 lim=1 cap=1],BOOL,Endpoint(167864339,-8928))))com.twitter.finagle.zipkin.thrift.Span.<init>(Span.scala:25)
com.twitter.finagle.zipkin.thrift.MutableSpan.toSpan(DeadlineSpanMap.scala:143)
com.twitter.finagle.zipkin.thrift.DeadlineSpanMap.update(DeadlineSpanMap.scala:50)
com.twitter.finagle.zipkin.thrift.RawZipkinTracer.annotate(RawZipkinTracer.scala:295)
com.twitter.finagle.zipkin.thrift.RawZipkinTracer.record(RawZipkinTracer.scala:214)
com.twitter.finagle.tracing.Trace$$anonfun$uncheckedRecord$1.apply(Trace.scala:262)
com.twitter.finagle.tracing.Trace$$anonfun$uncheckedRecord$1.apply(Trace.scala:262)
scala.collection.immutable.List.foreach(List.scala:381)
com.twitter.finagle.tracing.Trace$.uncheckedRecord(Trace.scala:262)
com.twitter.finagle.tracing.Trace$.record(Trace.scala:308)
com.twitter.finagle.tracing.AnnotatingTracingFilter$$anonfun$apply$1.apply$mcV$sp(TraceInitializerFilter.scala:141)
com.twitter.util.Future$$anonfun$ensure$1.apply(Future.scala:703)
com.twitter.util.Future$$anonfun$ensure$1.apply(Future.scala:703)
com.twitter.util.Promise$Monitored.apply(Promise.scala:73)
com.twitter.util.Promise$Monitored.apply(Promise.scala:64)
com.twitter.util.Promise$$anon$2.run(Promise.scala:352)
com.twitter.concurrent.LocalScheduler$Activation.run(Scheduler.scala:187)
com.twitter.concurrent.LocalScheduler$Activation.submit(Scheduler.scala:158)
com.twitter.concurrent.LocalScheduler.submit(Scheduler.scala:216)
com.twitter.concurrent.Scheduler$.submit(Scheduler.scala:84)
com.twitter.util.Promise.runq(Promise.scala:338)
com.twitter.util.Promise.updateIfEmpty(Promise.scala:669)
com.twitter.util.Promise.update(Promise.scala:642)
com.twitter.util.Promise.setValue(Promise.scala:618)
com.twitter.concurrent.AsyncQueue.offer(AsyncQueue.scala:76)
com.twitter.finagle.transport.ChannelTransport.handleUpstream(ChannelTransport.scala:50)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)
org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)
org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
com.twitter.finagle.thrift.ThriftFrameCodec.handleUpstream(ThriftFrameCodec.scala:17)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
org.jboss.netty.channel.SimpleChannelHandler.messageReceived(SimpleChannelHandler.java:142)
com.twitter.finagle.channel.ChannelStatsHandler.messageReceived(ChannelStatsHandler.scala:86)
org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
org.jboss.netty.channel.SimpleChannelHandler.messageReceived(SimpleChannelHandler.java:142)
com.twitter.finagle.channel.ChannelRequestStatsHandler.messageReceived(ChannelRequestStatsHandler.scala:35)
org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
. . .
SpanId(1faf0a8e2cf9dc18.0000000000000000<:0000000000000000, Some(bolt), Some(ping), ArrayBuffer(ZipkinAnnotation(2016-04-19 04:04:26 +0000,sr,Endpoint(167864339,8090),None), ZipkinAnnotation(2016-04-19 04:04:26 +0000,ss,Endpoint(167864339,8090),None)), ArrayBuffer(BinaryAnnotation(srv/finagle.version,java.nio.HeapByteBuffer[pos=0 lim=6 cap=6],STRING,Endpoint(0,0)), BinaryAnnotation(sa,java.nio.HeapByteBuffer[pos=0 lim=1 cap=1],BOOL,Endpoint(167864339,8090)), BinaryAnnotation(ca,java.nio.HeapByteBuffer[pos=0 lim=1 cap=1],BOOL,Endpoint(167883453,-10727))))com.twitter.finagle.zipkin.thrift.Span.<init>(Span.scala:25)
com.twitter.finagle.zipkin.thrift.MutableSpan.toSpan(DeadlineSpanMap.scala:143)
com.twitter.finagle.zipkin.thrift.DeadlineSpanMap.update(DeadlineSpanMap.scala:50)
com.twitter.finagle.zipkin.thrift.RawZipkinTracer.annotate(RawZipkinTracer.scala:295)
com.twitter.finagle.zipkin.thrift.RawZipkinTracer.record(RawZipkinTracer.scala:216)
com.twitter.finagle.tracing.Trace$$anonfun$uncheckedRecord$1.apply(Trace.scala:262)
com.twitter.finagle.tracing.Trace$$anonfun$uncheckedRecord$1.apply(Trace.scala:262)
scala.collection.immutable.List.foreach(List.scala:381)
com.twitter.finagle.tracing.Trace$.uncheckedRecord(Trace.scala:262)
com.twitter.finagle.tracing.Trace$.record(Trace.scala:308)
com.twitter.finagle.tracing.AnnotatingTracingFilter$$anonfun$apply$1.apply$mcV$sp(TraceInitializerFilter.scala:141)
com.twitter.util.Future$$anonfun$ensure$1.apply(Future.scala:703)
com.twitter.util.Future$$anonfun$ensure$1.apply(Future.scala:703)
com.twitter.util.Promise$Monitored.apply(Promise.scala:73)
com.twitter.util.Promise$Monitored.apply(Promise.scala:64)
com.twitter.util.Promise$$anon$2.run(Promise.scala:361)
com.twitter.concurrent.LocalScheduler$Activation.run(Scheduler.scala:187)
com.twitter.concurrent.LocalScheduler$Activation.submit(Scheduler.scala:158)
com.twitter.concurrent.LocalScheduler.submit(Scheduler.scala:216)
com.twitter.concurrent.Scheduler$.submit(Scheduler.scala:84)
com.twitter.util.Promise.runq(Promise.scala:338)
com.twitter.util.Promise.updateIfEmpty(Promise.scala:669)
com.twitter.util.Promise.update(Promise.scala:642)
com.twitter.util.Promise.setValue(Promise.scala:618)
com.twitter.concurrent.AsyncQueue.offer(AsyncQueue.scala:76)
com.twitter.finagle.transport.ChannelTransport.handleUpstream(ChannelTransport.scala:50)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)
org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)
org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
com.twitter.finagle.thrift.ThriftFrameCodec.handleUpstream(ThriftFrameCodec.scala:17)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
org.jboss.netty.channel.SimpleChannelHandler.messageReceived(SimpleChannelHandler.java:142)
com.twitter.finagle.channel.ChannelStatsHandler.messageReceived(ChannelStatsHandler.scala:86)
org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
org.jboss.netty.channel.SimpleChannelHandler.messageReceived(SimpleChannelHandler.java:142)
com.twitter.finagle.channel.ChannelRequestStatsHandler.messageReceived(ChannelRequestStatsHandler.scala:35)
org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
. . .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment