trace

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package trace provides trace functions.

Package trace provides trace functions.

Package trace provides trace function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatusCodeAborted

func StatusCodeAborted(msg string) trace.Status

func StatusCodeAlreadyExists

func StatusCodeAlreadyExists(msg string) trace.Status

func StatusCodeCancelled

func StatusCodeCancelled(msg string) trace.Status

func StatusCodeDataLoss

func StatusCodeDataLoss(msg string) trace.Status

func StatusCodeDeadlineExceeded

func StatusCodeDeadlineExceeded(msg string) trace.Status

func StatusCodeFailedPrecondition

func StatusCodeFailedPrecondition(msg string) trace.Status

func StatusCodeInternal

func StatusCodeInternal(msg string) trace.Status

func StatusCodeInvalidArgument

func StatusCodeInvalidArgument(msg string) trace.Status

func StatusCodeNotFound

func StatusCodeNotFound(msg string) trace.Status

func StatusCodeOK

func StatusCodeOK(msg string) trace.Status

func StatusCodeOutOfRange

func StatusCodeOutOfRange(msg string) trace.Status

func StatusCodePermissionDenied

func StatusCodePermissionDenied(msg string) trace.Status

func StatusCodeResourceExhausted

func StatusCodeResourceExhausted(msg string) trace.Status

func StatusCodeUnauthenticated

func StatusCodeUnauthenticated(msg string) trace.Status

func StatusCodeUnavailable

func StatusCodeUnavailable(msg string) trace.Status

func StatusCodeUnimplemented

func StatusCodeUnimplemented(msg string) trace.Status

func StatusCodeUnknown

func StatusCodeUnknown(msg string) trace.Status

Types

type Span

type Span = trace.Span

func StartSpan

func StartSpan(ctx context.Context, name string, opts ...trace.StartOption) (context.Context, *Span)

type TraceOption

type TraceOption func(*tracer)

func WithSamplingRate

func WithSamplingRate(rate float64) TraceOption

type Tracer

type Tracer interface {
	Start(ctx context.Context)
}

func New

func New(opts ...TraceOption) Tracer

Jump to

Keyboard shortcuts

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