Debian Codegraph @

opentracing/logs.py

raw
1 # Copyright The OpenTracing Authors
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 from __future__ import absolute_import
16
17 # The following log fields are described in greater detail at the
18 # following url:
19 # https://github.com/opentracing/specification/blob/master/semantic_conventions.md
20
21 # ---------------------------------------------------------------------------
22 # The type or "kind" of an error (only for event="error" logs). E.g.,
23 # "Exception", "OSError"
24 # ---------------------------------------------------------------------------
25 ERROR_KIND = 'error.kind'
26
27 # ---------------------------------------------------------------------------
28 # The actual Exception/Error object instance itself. E.g., A python
29 # exceptions.NameError instance
30 # ---------------------------------------------------------------------------
31 ERROR_OBJECT = 'error.object'
32
33 # ---------------------------------------------------------------------------
34 # A stable identifier for some notable moment in the lifetime of a Span.
35 # For instance, a mutex lock acquisition or release or the sorts of lifetime
36 # events in a browser page load described in the Performance.timing
37 # specification. E.g., from Zipkin, "cs", "sr", "ss", or "cr". Or, more
38 # generally, "initialized" or "timed out". For errors, "error"
39 # ---------------------------------------------------------------------------
40 EVENT = 'event'
41
42 # ---------------------------------------------------------------------------
43 # A concise, human-readable, one-line message explaining the event. E.g.,
44 # "Could not connect to backend", "Cache invalidation succeeded"
45 # ---------------------------------------------------------------------------
46 MESSAGE = 'message'
47
48 # ---------------------------------------------------------------------------
49 # A stack trace in platform-conventional format; may or may not pertain to
50 # an error.
51 # ---------------------------------------------------------------------------
52 STACK = 'stack'