From 8917ebdcfe2d42aca7a6a22062b06e9594dfa19f Mon Sep 17 00:00:00 2001 From: Johan Oskarsson Date: Tue, 17 Jul 2012 18:31:04 -0700 Subject: [PATCH] These are a bit much --- .../com/twitter/zipkin/storage/cassandra/SnappyCodec.scala | 2 -- 1 file changed, 2 deletions(-) diff --git a/zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/SnappyCodec.scala b/zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/SnappyCodec.scala index ddf66108b1a..847fd10a09c 100644 --- a/zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/SnappyCodec.scala +++ b/zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/SnappyCodec.scala @@ -33,7 +33,6 @@ class SnappyCodec[T](codec: Codec[T]) extends Codec[T] { def encode(t: T): ByteBuffer = { Stats.time("snappycodec.compress") { - Trace.record("snappycodec.compress") val arr = Util.getArrayFromBuffer(codec.encode(t)) val compressArr = new Array[Byte](Snappy.maxCompressedLength(arr.length)) val compressLen = Snappy.compress(arr, 0, arr.length, compressArr, 0) @@ -44,7 +43,6 @@ class SnappyCodec[T](codec: Codec[T]) extends Codec[T] { def decode(ary: ByteBuffer): T = { Stats.time("snappycodec.decompress") { - Trace.record("snappycodec.decompress") val arr = Util.getArrayFromBuffer(ary) val uncompressedArr = Snappy.uncompress(arr, 0, arr.length) codec.decode(ByteBuffer.wrap(uncompressedArr))