Documentation
¶
Index ¶
- Constants
- func Operation(skip int) (funcName string, file string, line int)
- func Put(ctx context.Context, s *Stack) context.Context
- func Shutdown(ctx context.Context)
- func Stacktrace(skip int) *gostackparse.Goroutine
- type Attr
- type Backend
- type BackendFuncs
- type Event
- type ID
- type Kind
- type LogEvent
- type MuxBackendRule
- type Option
- type OptionFunc
- type Options
- func (options Options) Apply(ctx context.Context) context.Context
- func (options Options) ApplyToStack(s *Stack)
- func (options Options) Attrs(attrs ...Attr) Options
- func (options Options) Backend(backend Backend) Options
- func (options Options) EmbedLogsIntoSpans(embed bool) Options
- func (options Options) Name(name string) Options
- func (options Options) Option(option Option) Options
- func (options Options) ParentSpanID(id []byte) Options
- func (options Options) ScopeAttrs(attrs ...Attr) Options
- func (options Options) ServiceName(name string) Options
- func (options Options) TraceID(traceID []byte) Options
- func (options Options) W3CTraceContext(traceparent, tracestate string) Options
- func (options Options) W3CTraceContextFromRequest(q *http.Request) Options
- type RawAttrValue
- type Span
- type SpanLog
- type Stack
- type TraceID
Constants ¶
View Source
const ( LevelDebug = "debug" LevelInfo = "info" LevelWarn = "warn" LevelError = "error" LevelSpan = "span+" LevelSpanEnd = "span-" )
Variables ¶
This section is empty.
Functions ¶
func Stacktrace ¶
func Stacktrace(skip int) *gostackparse.Goroutine
Types ¶
type Attr ¶
func (Attr) ApplyToStack ¶
type Backend ¶
func EventFilter ¶
EventFilter
type BackendFuncs ¶
backendFuncs
func (BackendFuncs) Handle ¶
func (bf BackendFuncs) Handle(e Event)
func (BackendFuncs) Shutdown ¶
func (bf BackendFuncs) Shutdown(ctx context.Context)
type MuxBackendRule ¶
func (MuxBackendRule) TryHandle ¶
func (r MuxBackendRule) TryHandle(e Event)
type OptionFunc ¶
type OptionFunc func(s *Stack)
func (OptionFunc) ApplyToStack ¶
func (a OptionFunc) ApplyToStack(s *Stack)
type Options ¶
type Options []Option
func (Options) ApplyToStack ¶
func (Options) EmbedLogsIntoSpans ¶
func (Options) ParentSpanID ¶
func (Options) ScopeAttrs ¶
func (Options) ServiceName ¶
func (Options) W3CTraceContext ¶
type RawAttrValue ¶
type RawAttrValue string
type Span ¶
type Stack ¶
type TraceID ¶
type TraceID [16]byte
func NewTraceID ¶
func NewTraceID() (id TraceID)
func TraceIDFromString ¶
func (TraceID) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.