diff options
author | Bogdan Drutu <bogdandrutu@gmail.com> | 2017-04-11 09:08:31 -0700 |
---|---|---|
committer | Bogdan Drutu <bogdandrutu@gmail.com> | 2017-04-11 16:26:32 -0700 |
commit | 2651296a6e10e2e58bdc4a89979b88508e3ed796 (patch) | |
tree | adc695c00915f085968b1e93f17230d228b5847d /benchmarks/src | |
parent | 5546c091a2248861da04be6b34ce326ffaa230d6 (diff) | |
download | opencensus-java-2651296a6e10e2e58bdc4a89979b88508e3ed796.tar.gz |
Updates after the review.
Diffstat (limited to 'benchmarks/src')
-rw-r--r-- | benchmarks/src/jmh/java/com/google/instrumentation/trace/PropagationUtilBenchmark.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/benchmarks/src/jmh/java/com/google/instrumentation/trace/PropagationUtilBenchmark.java b/benchmarks/src/jmh/java/com/google/instrumentation/trace/PropagationUtilBenchmark.java index 3b302186..2834db03 100644 --- a/benchmarks/src/jmh/java/com/google/instrumentation/trace/PropagationUtilBenchmark.java +++ b/benchmarks/src/jmh/java/com/google/instrumentation/trace/PropagationUtilBenchmark.java @@ -14,6 +14,7 @@ package com.google.instrumentation.trace; import java.io.IOException; +import java.text.ParseException; import java.util.concurrent.TimeUnit; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; @@ -61,7 +62,7 @@ public class PropagationUtilBenchmark { @Benchmark @BenchmarkMode(Mode.SampleTime) @OutputTimeUnit(TimeUnit.NANOSECONDS) - public SpanContext fromBinaryValueSpanContext() throws IOException { + public SpanContext fromBinaryValueSpanContext() throws ParseException { return PropagationUtil.fromBinaryValue(spanContextBinary); } @@ -73,7 +74,7 @@ public class PropagationUtilBenchmark { @Benchmark @BenchmarkMode(Mode.SampleTime) @OutputTimeUnit(TimeUnit.NANOSECONDS) - public SpanContext toFromBinarySpanContext() throws IOException { + public SpanContext toFromBinarySpanContext() throws ParseException { return PropagationUtil.fromBinaryValue(PropagationUtil.toBinaryValue(spanContext)); } } |