Documentation ¶
Index ¶
- func GetCaller() string
- func Sampler() sdk_trace.Sampler
- func TraceIDFromCtx(ctx context.Context) string
- type Config
- type Span
- func CreateSpan(span trace.Span) *Span
- func NewClientInterceptorSpan(ctx context.Context) (context.Context, *Span)
- func NewClientSpan(ctx context.Context) (context.Context, *Span)
- func NewNamedSpan(ctx context.Context, name string) (context.Context, *Span)
- func NewServerInterceptorSpan(ctx context.Context) (context.Context, *Span)
- func NewServerSpan(ctx context.Context) (context.Context, *Span)
- func NewSpan(ctx context.Context) (context.Context, *Span)
- func NewSpanHTTP(r *http.Request) (*http.Request, *Span)
- type Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TraceIDFromCtx ¶
Types ¶
type Span ¶
type Span struct {
// contains filtered or unexported fields
}
func CreateSpan ¶
func (*Span) EndWithError ¶
func (*Span) SetStatusByError ¶
type Tracer ¶
type Tracer interface { NewSpan(ctx context.Context, caller string) (context.Context, *Span) NewClientSpan(ctx context.Context, caller string) (context.Context, *Span) NewServerSpan(ctx context.Context, caller 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, caller string) (*http.Request, *Span) Sampler() sdk_trace.Sampler }
var T Tracer
Click to show internal directories.
Click to hide internal directories.