Documentation ¶
Index ¶
- Constants
- func InitTracer(c Config) error
- func Trace(ctx *gin.Context)
- type Config
- type Span
- func (S *Span) End()
- func (S *Span) Inject(req *http.Request)
- func (S *Span) InjectByBaggage(req *http.Request)
- func (S *Span) NewChildSpan(spanName string) Span
- func (S *Span) SetBoolTag(key string, value bool)
- func (S *Span) SetInt64Tag(key string, value int64)
- func (S *Span) SetIntTag(key string, value int)
- func (S *Span) SetNative(kv attribute.KeyValue)
- func (S *Span) SetObjectTag(key string, value interface{}) error
- func (S *Span) SetStatus(code codes.Code, desc string)
- func (S *Span) SetStringTag(key, value string)
- func (S *Span) Span() trace.Span
- func (S *Span) SpanContext() context.Context
- func (S *Span) SpanID() string
- func (S *Span) TraceID() string
Constants ¶
View Source
const ( HeaderTraceIDKey = "x-trace-id" HeaderSpanIDKey = "x-span-id" HeaderTraceContextKey = "x-trace-ctx" )
Variables ¶
This section is empty.
Functions ¶
func InitTracer ¶
Types ¶
type Span ¶
type Span struct {
// contains filtered or unexported fields
}
func (*Span) InjectByBaggage ¶
func (*Span) NewChildSpan ¶
func (*Span) SetBoolTag ¶
func (*Span) SetInt64Tag ¶
func (*Span) SetObjectTag ¶
func (*Span) SetStringTag ¶
func (*Span) SpanContext ¶
Click to show internal directories.
Click to hide internal directories.