Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSpanName ¶
Types ¶
type Span ¶
type Span struct {
// contains filtered or unexported fields
}
func (*Span) AddAnnotation ¶
AddAnnotation creates an annotation. The annotation will not be added to the tracing use Annotate(msg) afterwards
func (*Span) Annotate ¶
Annotate creates an annotation in tracing. Before added annotations will be set
func (*Span) EndWithError ¶
func (*Span) SetStatusByError ¶
type Tracer ¶
type Tracer interface { NewSpan(ctx context.Context, pkg, method string) (context.Context, *Span) NewClientSpan(ctx context.Context, pkg, method string) (context.Context, *Span) NewServerSpan(ctx context.Context, pkg, method string) (context.Context, *Span) NewClientInterceptorSpan(ctx context.Context, name string) (context.Context, *Span) NewServerInterceptorSpan(ctx context.Context, name string) (context.Context, *Span) NewSpanHTTP(r *http.Request, pkg, method string) (*http.Request, *Span) }
Click to show internal directories.
Click to hide internal directories.