| 1 | // Copyright 2020 The Go Authors. All rights reserved. |
|---|---|
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package keys |
| 6 | |
| 7 | var ( |
| 8 | // Msg is a key used to add message strings to label lists. |
| 9 | Msg = NewString("message", "a readable message") |
| 10 | // Label is a key used to indicate an event adds labels to the context. |
| 11 | Label = NewTag("label", "a label context marker") |
| 12 | // Start is used for things like traces that have a name. |
| 13 | Start = NewString("start", "span start") |
| 14 | // Metric is a key used to indicate an event records metrics. |
| 15 | End = NewTag("end", "a span end marker") |
| 16 | // Metric is a key used to indicate an event records metrics. |
| 17 | Detach = NewTag("detach", "a span detach marker") |
| 18 | // Err is a key used to add error values to label lists. |
| 19 | Err = NewError("error", "an error that occurred") |
| 20 | // Metric is a key used to indicate an event records metrics. |
| 21 | Metric = NewTag("metric", "a metric event marker") |
| 22 | ) |
| 23 |
Members