Class/Object

kamon.context

Context

Related Docs: object Context | package context

Permalink

class Context extends AnyRef

An immutable set of information that is tied to the processing of single operation in a service. A Context instance can contain tags and entries.

Context tags are built on top of the TagSet abstraction that ships with Kamon and since Kamon knows exactly what types of values can be included in a TagSet it can automatically serialize and deserialize them when going over HTTP and/or Binary transports.

Context entries can contain any arbitrary type specified by the user, but require additional configuration and implementation of entry readers and writers if you need them to go over HTTP and/or Binary transports.

Context instances are meant to be constructed by using the builder functions on the Context companion object.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Context
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def entries(): Iterator[Entry]

    Permalink

    Returns a loosely typed iterator of all entries in this Context.

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def get[T](key: Key[T]): T

    Permalink

    Gets an entry from this Context.

    Gets an entry from this Context. If the entry is present it's current value is returned, otherwise the empty value from the provided key will be returned.

  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getTag[T](lookup: Lookup[T]): T

    Permalink

    Executes a lookup on the context tags.

    Executes a lookup on the context tags. The actual return type depends on the provided lookup instance. Take a look at the built-in lookups available on the Lookups companion object.

  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. def isEmpty(): Boolean

    Permalink

    Returns whether this Context does not have any tags and does not have any entries.

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def nonEmpty(): Boolean

    Permalink

    Returns whether this Context has any information, either as tags or entries.

  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. val tags: TagSet

    Permalink
  22. def toString(): String

    Permalink
    Definition Classes
    Context → AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def withEntry[T](key: Key[T], value: T): Context

    Permalink

    Creates a new Context instance that includes the provided key and value.

    Creates a new Context instance that includes the provided key and value. If the provided key was already associated with another value then the previous value will be discarded and overwritten with the provided one.

  27. def withTag(key: String, value: Boolean): Context

    Permalink

    Creates a new Context instance that includes the provided tag key and value.

    Creates a new Context instance that includes the provided tag key and value. If the provided tag key was already associated with another value then the previous tag value will be discarded and overwritten with the provided one.

  28. def withTag(key: String, value: Long): Context

    Permalink

    Creates a new Context instance that includes the provided tag key and value.

    Creates a new Context instance that includes the provided tag key and value. If the provided tag key was already associated with another value then the previous tag value will be discarded and overwritten with the provided one.

  29. def withTag(key: String, value: String): Context

    Permalink

    Creates a new Context instance that includes the provided tag key and value.

    Creates a new Context instance that includes the provided tag key and value. If the provided tag key was already associated with another value then the previous tag value will be discarded and overwritten with the provided one.

  30. def withTags(tags: TagSet): Context

    Permalink

    Creates a new Context instance that includes the provided tags.

    Creates a new Context instance that includes the provided tags. If any of the tags in this instance are associated to a key present on the provided tags then the previous values will be discarded and overwritten with the provided ones.

  31. def withoutEntry[T](key: Key[T]): Context

    Permalink

    Creates a new Context without the specified Context entry.

Inherited from AnyRef

Inherited from Any

Ungrouped