Documentation
¶
Index ¶
- func InitTracing(options ...StartOption) (leafTracer.Tracer, error)
- type DataStoreOption
- type MessageProducerOption
- type SentrySpan
- func (s *SentrySpan) BaggageItem(key string) string
- func (s *SentrySpan) Context() leafTracer.SpanContext
- func (s *SentrySpan) Finish(opts ...leafTracer.FinishOption)
- func (s *SentrySpan) SetBaggageItem(key, val string)
- func (s *SentrySpan) SetOperationName(operationName string)
- func (s *SentrySpan) SetTag(key string, value interface{})
- func (s *SentrySpan) Tracer() leafTracer.Tracer
- type SentrySpanContext
- type SentryTracer
- func (s *SentryTracer) Extract(carrier interface{}) (leafTracer.SpanContext, error)
- func (s *SentryTracer) Inject(context leafTracer.SpanContext, carrier interface{}) error
- func (s *SentryTracer) SetServiceInfo(name, app, appType string)
- func (s *SentryTracer) StartSpan(operationName string, opts ...leafTracer.StartSpanOption) leafTracer.Span
- func (s *SentryTracer) Stop()
- type StartOption
- type StartSpanOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTracing ¶
func InitTracing(options ...StartOption) (leafTracer.Tracer, error)
Types ¶
type DataStoreOption ¶
type MessageProducerOption ¶
type MessageProducerOption struct { Library string DestinationType messageDestinationType.Enum DestinationName string DestinationTemporary bool }
type SentrySpan ¶
type SentrySpan struct {
// contains filtered or unexported fields
}
func (*SentrySpan) BaggageItem ¶
func (s *SentrySpan) BaggageItem(key string) string
BaggageItem implements leafTracer.Span.
func (*SentrySpan) Context ¶
func (s *SentrySpan) Context() leafTracer.SpanContext
Context implements leafTracer.Span.
func (*SentrySpan) Finish ¶
func (s *SentrySpan) Finish(opts ...leafTracer.FinishOption)
Finish implements leafTracer.Span.
func (*SentrySpan) SetBaggageItem ¶
func (s *SentrySpan) SetBaggageItem(key, val string)
SetBaggageItem implements leafTracer.Span.
func (*SentrySpan) SetOperationName ¶
func (s *SentrySpan) SetOperationName(operationName string)
SetOperationName implements leafTracer.Span.
func (*SentrySpan) SetTag ¶
func (s *SentrySpan) SetTag(key string, value interface{})
SetTag implements leafTracer.Span.
func (*SentrySpan) Tracer ¶
func (s *SentrySpan) Tracer() leafTracer.Tracer
Tracer implements leafTracer.Span.
type SentrySpanContext ¶
type SentrySpanContext struct {
// contains filtered or unexported fields
}
SentrySpanContext is an implementation of leafTracer.SpanContext that is for newrelic.
func (*SentrySpanContext) Context ¶
func (s *SentrySpanContext) Context() context.Context
Context implements leafTracer.SpanContext.
func (*SentrySpanContext) ForeachBaggageItem ¶
func (s *SentrySpanContext) ForeachBaggageItem(handler func(k, v string) bool)
ForeachBaggageItem implements leafTracer.SpanContext.
func (*SentrySpanContext) SpanID ¶
func (s *SentrySpanContext) SpanID() string
SpanID implements leafTracer.SpanContext.
func (*SentrySpanContext) TraceID ¶
func (s *SentrySpanContext) TraceID() string
TraceID implements leafTracer.SpanContext.
type SentryTracer ¶
type SentryTracer struct {
// contains filtered or unexported fields
}
func (*SentryTracer) Extract ¶
func (s *SentryTracer) Extract(carrier interface{}) (leafTracer.SpanContext, error)
Extract implements leafTracer.Tracer.
func (*SentryTracer) Inject ¶
func (s *SentryTracer) Inject(context leafTracer.SpanContext, carrier interface{}) error
Inject implements leafTracer.Tracer.
func (*SentryTracer) SetServiceInfo ¶
func (s *SentryTracer) SetServiceInfo(name, app, appType string)
SetServiceInfo implements leafTracer.Tracer.
func (*SentryTracer) StartSpan ¶
func (s *SentryTracer) StartSpan(operationName string, opts ...leafTracer.StartSpanOption) leafTracer.Span
StartSpan implements leafTracer.Tracer.
type StartOption ¶
type StartOption interface {
Apply(o *startOption)
}
func WithDeferFlushDuration ¶
func WithDeferFlushDuration(duration time.Duration) StartOption
func WithSentryOptions ¶
func WithSentryOptions(options sentry.ClientOptions) StartOption
type StartSpanOption ¶
type StartSpanOption = leafTracer.StartSpanOption
func WithDataStore ¶
func WithDataStore(option DataStoreOption) StartSpanOption
func WithExternal ¶
func WithExternal(option *http.Request) StartSpanOption
func WithMessageProducer ¶
func WithMessageProducer(option MessageProducerOption) StartSpanOption
func WithSpanType ¶
func WithSpanType(t spanType.Enum) StartSpanOption