Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpSpan ¶
type HttpSpan struct {
StarterFunc func(s *HttpSpan)
FinisherFunc func(s *HttpSpan, httpCode int, whoFinishes string)
Id, Php, Path, Method string
T0, T1 time.Time // the time bounds of the span
ExtraObject any // can be used to attach extra user context, e.g. to report data transferred, other attributes of a span
}
type HttpSpanCreator ¶
type HttpSpanCreator struct {
StarterFunc func(s *HttpSpan)
FinisherFunc func(s *HttpSpan, httpCode int, whoFinishes string)
}
func NewHttpSpanCreator ¶
func NewHttpSpanCreator(optFuncs ...func(c *HttpSpanCreator)) (c *HttpSpanCreator, err error)
deprecated, please use the generic span instead
func (*HttpSpanCreator) NewSpan ¶
func (c *HttpSpanCreator) NewSpan(id, php, path, method string) (s *HttpSpan)
deprecated, please use the generic span instead
type Span ¶ added in v1.30.0
type Span[T any] struct { T0, T1 time.Time // the time bounds of the span UserAttrs T // contains filtered or unexported fields }
type SpanCreator ¶ added in v1.30.0
type SpanCreator[T any] struct { StarterFunc func(s *Span[T]) FinisherFunc func(s *Span[T]) ErrorFunc func(s *Span[T], err error) }
func NewSpanCreator ¶ added in v1.30.0
func NewSpanCreator[T any](optFuncs ...func(c *SpanCreator[T])) (c *SpanCreator[T])
func (*SpanCreator[T]) NewSpan ¶ added in v1.30.0
func (c *SpanCreator[T]) NewSpan(of ...func(s *Span[T])) (s *Span[T])
Click to show internal directories.
Click to hide internal directories.