Documentation ¶
Index ¶
- func ContextWithSpan(ctx context.Context, s sdk.Span) context.Context
- func SpanFromContext(ctx context.Context) sdk.Span
- func StartSpan(ctx context.Context, name string, opts *sdk.SpanOptions) (context.Context, sdk.Span, func())
- type AttributeList
- type Filter
- func (f Filter) Evaluate(span sdk.Span, url string, body []byte, headers map[string][]string) result.FilterResult
- func (f Filter) EvaluateBody(span sdk.Span, body []byte, headers map[string][]string) result.FilterResult
- func (f Filter) EvaluateURLAndHeaders(span sdk.Span, url string, headers map[string][]string) result.FilterResult
- type Span
- func (s *Span) AddEvent(name string, ts time.Time, attributes map[string]interface{})
- func (s *Span) GetAttributes() sdk.AttributeList
- func (s *Span) IsNoop() bool
- func (s *Span) ReadAttribute(key string) interface{}
- func (s *Span) RemainingAttributes() int
- func (s *Span) SetAttribute(key string, value interface{})
- func (s *Span) SetError(err error)
- func (s *Span) SetStatus(code sdk.Code, description string)
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttributeList ¶ added in v0.6.0
type AttributeList struct {
// contains filtered or unexported fields
}
func (*AttributeList) GetValue ¶ added in v0.6.0
func (l *AttributeList) GetValue(key string) interface{}
type Filter ¶
type Filter struct { URLAndHeadersEvaluator func(span sdk.Span, url string, headers map[string][]string) result.FilterResult BodyEvaluator func(span sdk.Span, body []byte, headers map[string][]string) result.FilterResult Evaluator func(span sdk.Span, url string, body []byte, headers map[string][]string) result.FilterResult }
func (Filter) EvaluateBody ¶
func (Filter) EvaluateURLAndHeaders ¶
type Span ¶
type Span struct { Name string Attributes map[string]interface{} Options sdk.SpanOptions Err error Noop bool Status Status // contains filtered or unexported fields }
func (*Span) GetAttributes ¶ added in v0.6.0
func (s *Span) GetAttributes() sdk.AttributeList
func (*Span) ReadAttribute ¶
func (*Span) RemainingAttributes ¶
func (*Span) SetAttribute ¶
Click to show internal directories.
Click to hide internal directories.