log

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2017 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// String adds a string-valued key:value pair to a Span.LogFields() record
	String = log.String

	// Bool adds a bool-valued key:value pair to a Span.LogFields() record
	Bool = log.Bool

	// Int adds an int-valued key:value pair to a Span.LogFields() record
	Int = log.Int

	// Int32 adds an int32-valued key:value pair to a Span.LogFields() record
	Int32 = log.Int32

	// Int64 adds an int64-valued key:value pair to a Span.LogFields() record
	Int64 = log.Int64

	// Uint32 adds a uint32-valued key:value pair to a Span.LogFields() record
	Uint32 = log.Uint32

	// Uint64 adds a uint64-valued key:value pair to a Span.LogFields() record
	Uint64 = log.Uint64

	// Float32 adds a float32-valued key:value pair to a Span.LogFields() record
	Float32 = log.Float32

	// Float64 adds a float64-valued key:value pair to a Span.LogFields() record
	Float64 = log.Float64

	// ErrorKind is the type or "kind" of an error (only for event="error" logs).
	// E.g., "Exception", "OSError"
	ErrorKind = stringLogName("error.kind")

	// ErrorObject for the actual error instance itself.
	ErrorObject = errorLogName("error.object")

	// Event is a stable identifier for some notable moment in the lifetime of a Span.
	// For instance, a mutex lock acquisition or release or the sorts of lifetime
	// events in a browser page load described in the Performance.timing specification.
	// E.g., from Zipkin, "cs", "sr", "ss", or "cr". Or, more generally, "initialized"
	// or "timed out". For errors, "error"
	Event = stringLogName("event")

	// Message a concise, human-readable, one-line message explaining the event.
	// E.g., "Could not connect to backend", "Cache invalidation succeeded"
	Message = stringLogName("message")

	// Stack a stack trace in platform-conventional format; may or may not pertain
	// to an error. E.g., "File \"example.py\", line 7, in \<module\>\ncaller()\nFile
	// \"example.py\", line 5, in caller\ncallee()\nFile \"example.py\", line 2, in
	// callee\nraise Exception(\"Yikes\")\n"
	Stack = stringLogName("stack")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL