Documentation ¶
Index ¶
- func AddPP(span *Span, begin time.Time)
- func EndPP(span *Span)
- func Finish(spans ...*Span)
- func NewContextWithSpan(ctx context.Context, c *Span) context.Context
- func NewContextWithTrace(ctx context.Context, t *Trace) context.Context
- func NewTrace(name string, opt ...tracing.StartSpanOption) (*Trace, *Span)
- func SpanElapsed(span *Span, fn func())
- func StartPP(span *Span)
- type ContextKey
- type Span
- func (s *Span) AddIntField(key string, val int)
- func (s *Span) AddIntFields(key []string, val []int)
- func (s *Span) AddStringField(key, val string)
- func (s *Span) AppendNameValue(key string, val interface{})
- func (s *Span) Context() tracing.SpanContext
- func (s *Span) Count(name string, x int64)
- func (s *Span) CreateCounter(name string, unit string) *SpanCounter
- func (s *Span) EndPP()
- func (s *Span) Finish()
- func (s *Span) MergeFields(args ...fields.Field)
- func (s *Span) MergeLabels(args ...string)
- func (s *Span) SetFields(set fields.Fields)
- func (s *Span) SetLabels(args ...string)
- func (s *Span) SetNameValue(val string)
- func (s *Span) StartPP() *Span
- func (s *Span) StartSpan(name string, opt ...tracing.StartSpanOption) *Span
- type SpanCounter
- type Trace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SpanElapsed ¶
func SpanElapsed(span *Span, fn func())
Types ¶
type ContextKey ¶
type ContextKey string
type Span ¶
type Span struct {
// contains filtered or unexported fields
}
func SpanFromContext ¶
func (*Span) AddIntField ¶
func (*Span) AddIntFields ¶
func (*Span) AddStringField ¶
func (*Span) AppendNameValue ¶
func (*Span) Context ¶
func (s *Span) Context() tracing.SpanContext
func (*Span) CreateCounter ¶
func (s *Span) CreateCounter(name string, unit string) *SpanCounter
func (*Span) MergeFields ¶
func (*Span) MergeLabels ¶
func (*Span) SetNameValue ¶
type SpanCounter ¶
type SpanCounter struct {
// contains filtered or unexported fields
}
func (*SpanCounter) Name ¶
func (c *SpanCounter) Name() string
func (*SpanCounter) Value ¶
func (c *SpanCounter) Value() string
type Trace ¶
type Trace struct {
// contains filtered or unexported fields
}
func TraceFromContext ¶
func (*Trace) MarshalBinary ¶
func (*Trace) UnmarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.