Documentation ¶
Overview ¶
Package trace provides trace functions.
Package trace provides trace functions.
Package trace provides trace function.
Index ¶
- Constants
- Variables
- func FromGRPCStatus(code codes.Code, msg string) []attribute.KeyValue
- func StatusCodeAborted(msg string) []attribute.KeyValue
- func StatusCodeAlreadyExists(msg string) []attribute.KeyValue
- func StatusCodeCancelled(msg string) []attribute.KeyValue
- func StatusCodeDataLoss(msg string) []attribute.KeyValue
- func StatusCodeDeadlineExceeded(msg string) []attribute.KeyValue
- func StatusCodeFailedPrecondition(msg string) []attribute.KeyValue
- func StatusCodeInternal(msg string) []attribute.KeyValue
- func StatusCodeInvalidArgument(msg string) []attribute.KeyValue
- func StatusCodeNotFound(msg string) []attribute.KeyValue
- func StatusCodeOK(msg string) []attribute.KeyValue
- func StatusCodeOutOfRange(msg string) []attribute.KeyValue
- func StatusCodePermissionDenied(msg string) []attribute.KeyValue
- func StatusCodeResourceExhausted(msg string) []attribute.KeyValue
- func StatusCodeUnauthenticated(msg string) []attribute.KeyValue
- func StatusCodeUnavailable(msg string) []attribute.KeyValue
- func StatusCodeUnimplemented(msg string) []attribute.KeyValue
- func StatusCodeUnknown(msg string) []attribute.KeyValue
- type Attributes
- type Span
- type TraceOption
- type Tracer
Constants ¶
View Source
const ( StatusOK = ocodes.Ok StatusError = ocodes.Error )
Variables ¶
View Source
var (
FromContext = trace.SpanFromContext
)
Functions ¶
func FromGRPCStatus ¶ added in v1.0.5
func StatusCodeAborted ¶
func StatusCodeAlreadyExists ¶
func StatusCodeCancelled ¶
func StatusCodeDataLoss ¶
func StatusCodeInternal ¶
func StatusCodeNotFound ¶
func StatusCodeOK ¶
func StatusCodeOutOfRange ¶
func StatusCodeUnavailable ¶
func StatusCodeUnimplemented ¶
func StatusCodeUnknown ¶
Types ¶
type Attributes ¶ added in v1.7.1
type TraceOption ¶
type TraceOption func(*tracer) error
Click to show internal directories.
Click to hide internal directories.