Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

NullTraceReceiver

  • Loading branch information...
commit 1ad4fdad1d056dbdc844f1c5e2ff575a86bff1c9 1 parent 53f3790
@mariusae mariusae authored
View
9 finagle-core/src/main/scala/com/twitter/finagle/tracing/TraceReceiver.scala
@@ -13,8 +13,15 @@ trait TraceReceiver {
def receiveSpan(span: Span): Unit
}
+class NullTraceReceiver extends TraceReceiver {
+ def receiveSpan(span: Span) {/*ignore*/}
+}
+
+/**
+ * Pretty-print the span together with the transcript on the console.
+ */
class ConsoleTraceReceiver extends TraceReceiver {
def receiveSpan(span: Span) {
- println(span)
+ span.print()
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.