Documentation ¶
Overview ¶
Package trace provides trace functions.
Package trace provides trace functions.
Package trace provides trace function.
Index ¶
- Variables
- type Span
- type Status
- func FromGRPCStatus(code codes.Code, msg string) Status
- func StatusCodeAborted(msg string) Status
- func StatusCodeAlreadyExists(msg string) Status
- func StatusCodeCancelled(msg string) Status
- func StatusCodeDataLoss(msg string) Status
- func StatusCodeDeadlineExceeded(msg string) Status
- func StatusCodeFailedPrecondition(msg string) Status
- func StatusCodeInternal(msg string) Status
- func StatusCodeInvalidArgument(msg string) Status
- func StatusCodeNotFound(msg string) Status
- func StatusCodeOK(msg string) Status
- func StatusCodeOutOfRange(msg string) Status
- func StatusCodePermissionDenied(msg string) Status
- func StatusCodeResourceExhausted(msg string) Status
- func StatusCodeUnauthenticated(msg string) Status
- func StatusCodeUnavailable(msg string) Status
- func StatusCodeUnimplemented(msg string) Status
- func StatusCodeUnknown(msg string) Status
- type TraceOption
- type Tracer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BoolAttribute = trace.BoolAttribute Float64Attribute = trace.Float64Attribute Int64Attribute = trace.Int64Attribute StringAttribute = trace.StringAttribute FromContext = trace.FromContext )
Functions ¶
This section is empty.
Types ¶
type Status ¶ 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 ¶
type TraceOption ¶
type TraceOption func(*tracer)
func WithSamplingRate ¶
func WithSamplingRate(rate float64) TraceOption
Click to show internal directories.
Click to hide internal directories.