opencensus-specs

Tag Context API

TODO(sebright): Add more detail to the Tag Context summary, including how it relates to the current context.

TagContext is an abstract data type that represents a collection of tags. A TagContext can be used to label anything that is associated with a specific operation, such as an HTTP request. Each tag is composed of a key (TagKey), and a value (TagValue). A TagContext represents a map from keys to values, i.e., each key is associated with exactly one value, but multiple keys can be associated with the same value. TagContext is serializable, and it represents all of the information that must be propagated across process boundaries.

TagKey

A string or string wrapper, with some restrictions:

TagValue

A string or string wrapper with the same restrictions as TagKey, except that it is allowed to be empty.

Serialization

This section applies to all serialization formats. See https://github.com/census-instrumentation/opencensus-specs/tree/master/encodings for specific formats.

Error handling