Returns a loosely typed iterator of all entries in this Context.
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.
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.
Returns whether this Context does not have any tags and does not have any entries.
Returns whether this Context has any information, either as tags or entries.
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.
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.
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.
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.
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.
Creates a new Context without the specified Context entry.
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.