standard.go 961 B

12345678910111213141516171819202122
  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. package keys
  5. var (
  6. // Msg is a key used to add message strings to label lists.
  7. Msg = NewString("message", "a readable message")
  8. // Label is a key used to indicate an event adds labels to the context.
  9. Label = NewTag("label", "a label context marker")
  10. // Start is used for things like traces that have a name.
  11. Start = NewString("start", "span start")
  12. // Metric is a key used to indicate an event records metrics.
  13. End = NewTag("end", "a span end marker")
  14. // Metric is a key used to indicate an event records metrics.
  15. Detach = NewTag("detach", "a span detach marker")
  16. // Err is a key used to add error values to label lists.
  17. Err = NewError("error", "an error that occurred")
  18. // Metric is a key used to indicate an event records metrics.
  19. Metric = NewTag("metric", "a metric event marker")
  20. )