From 2651296a6e10e2e58bdc4a89979b88508e3ed796 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Tue, 11 Apr 2017 09:08:31 -0700 Subject: Updates after the review. --- .../com/google/instrumentation/trace/PropagationUtilBenchmark.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'benchmarks') 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)); } } -- cgit v1.2.3