Documentation ¶
Index ¶
- func ContextWithSpan(ctx context.Context, span Span) context.Context
- type FinishSpan
- type FinishSpanOption
- type Span
- func (s Span) Attribute(key string) (string, bool)
- func (s Span) Attributes() []internal.Attribute
- func (s Span) Finish(ctx context.Context, opts ...FinishSpanOption)
- func (s Span) FinishTime() time.Time
- func (s Span) ID() [8]byte
- func (s Span) OperationName() string
- func (s Span) ParentID() [8]byte
- func (s Span) SetAttribute(key string, value string)
- func (s Span) StartTime() time.Time
- func (s Span) TraceID() [16]byte
- type StartSpanOption
- func WithFinishSpan(finishSpan FinishSpan) StartSpanOption
- func WithID(id [8]byte) StartSpanOption
- func WithOperationName(operationName string) StartSpanOption
- func WithParentID(parentID [8]byte) StartSpanOption
- func WithStartTime(startTime time.Time) StartSpanOption
- func WithTraceID(traceID [16]byte) StartSpanOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FinishSpan ¶
type FinishSpanOption ¶
type FinishSpanOption func(*finishSpanConfig)
func WithFinishTime ¶
func WithFinishTime(finishTime time.Time) FinishSpanOption
type Span ¶
type Span struct {
// contains filtered or unexported fields
}
func NewSpan ¶
func NewSpan(opts ...StartSpanOption) Span
func (Span) Attributes ¶
func (Span) FinishTime ¶
func (Span) OperationName ¶
func (Span) SetAttribute ¶
type StartSpanOption ¶
type StartSpanOption func(*startSpanConfig)
func WithFinishSpan ¶
func WithFinishSpan(finishSpan FinishSpan) StartSpanOption
func WithID ¶
func WithID(id [8]byte) StartSpanOption
func WithOperationName ¶
func WithOperationName(operationName string) StartSpanOption
func WithParentID ¶
func WithParentID(parentID [8]byte) StartSpanOption
func WithStartTime ¶
func WithStartTime(startTime time.Time) StartSpanOption
func WithTraceID ¶
func WithTraceID(traceID [16]byte) StartSpanOption
Click to show internal directories.
Click to hide internal directories.