aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kamon-core-bench/src/main/scala/kamon/bench/ThreadLocalStorageBenchmark.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/kamon-core-bench/src/main/scala/kamon/bench/ThreadLocalStorageBenchmark.scala b/kamon-core-bench/src/main/scala/kamon/bench/ThreadLocalStorageBenchmark.scala
index e67a913e..6c8c3af9 100644
--- a/kamon-core-bench/src/main/scala/kamon/bench/ThreadLocalStorageBenchmark.scala
+++ b/kamon-core-bench/src/main/scala/kamon/bench/ThreadLocalStorageBenchmark.scala
@@ -19,14 +19,14 @@ package kamon.bench
import java.util.concurrent.TimeUnit
import kamon.context.Storage.Scope
-import kamon.context.{Context, Key, Storage}
+import kamon.context.{Context, Storage}
import org.openjdk.jmh.annotations._
@State(Scope.Benchmark)
class ThreadLocalStorageBenchmark {
- val TestKey: Key[Int] = Key.local("test-key", 0)
- val ContextWithKey: Context = Context.create().withKey(TestKey, 43)
+ val TestKey: Context.Key[Int] = Context.key("test-key", 0)
+ val ContextWithKey: Context = Context.of(TestKey, 43)
val TLS: Storage = new OldThreadLocal
val FTLS: Storage = new Storage.ThreadLocal