aboutsummaryrefslogtreecommitdiff
path: root/kamon-testkit/src/main/scala/kamon/testkit/ContextTesting.scala
blob: b9e243d43b649566da170d887e17f20d4f116c62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package kamon.testkit

import kamon.context.{Context, Key}

trait ContextTesting {
  val StringKey = Key.local[Option[String]]("string-key", None)
  val StringBroadcastKey = Key.broadcast[Option[String]]("string-broadcast-key", None)

  def contextWithLocal(value: String): Context =
    Context.create(StringKey, Some(value))
}

object ContextTesting extends ContextTesting