From 32dd9c6e1abe98a9b4f6ec91d9e4f3b68c29c3f1 Mon Sep 17 00:00:00 2001 From: Franklin Hu Date: Mon, 13 Aug 2012 18:27:46 -0700 Subject: [PATCH] Remove annotations in ScroogeThriftCodec Author: @franklinhu Fixes #113 URL: https://github.com/twitter/zipkin/pull/113 --- .../twitter/zipkin/storage/cassandra/ScroogeThriftCodec.scala | 3 --- 1 file changed, 3 deletions(-) diff --git a/zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/ScroogeThriftCodec.scala b/zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/ScroogeThriftCodec.scala index aca21443e00..48e4e3fde95 100644 --- a/zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/ScroogeThriftCodec.scala +++ b/zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/ScroogeThriftCodec.scala @@ -19,14 +19,12 @@ import java.nio.ByteBuffer import com.twitter.cassie.codecs.Codec import com.twitter.scrooge.{ThriftStructCodec, BinaryThriftStructSerializer, ThriftStruct} import com.twitter.ostrich.stats.Stats -import com.twitter.finagle.tracing.Trace class ScroogeThriftCodec[T <: ThriftStruct](structCodec: ThriftStructCodec[T]) extends Codec[T] { val serializer = new BinaryThriftStructSerializer[T] { def codec = structCodec } def encode(t: T): ByteBuffer = { Stats.time("scroogecodec.serialize") { - Trace.record("scroogecodec.serialize") val serialized = serializer.toBytes(t) Stats.addMetric("scroogecodec.serialized", serialized.size) b2b(serialized) @@ -35,7 +33,6 @@ class ScroogeThriftCodec[T <: ThriftStruct](structCodec: ThriftStructCodec[T]) e def decode(ary: ByteBuffer): T = { Stats.time("scroogecodec.deserialize") { - Trace.record("scroogecodec.deserialize") serializer.fromBytes(b2b(ary)) } }