Documentation
¶
Index ¶
- func InitTracing(options ...StartOption) (leafTracer.Tracer, error)
- func TransactionFromContext(parent context.Context) *newrelic.Transaction
- type DataStoreOption
- type MessageProducerOption
- type NrSpan
- func (nr *NrSpan) BaggageItem(key string) string
- func (nr *NrSpan) Context() leafTracer.SpanContext
- func (nr *NrSpan) Finish(opts ...leafTracer.FinishOption)
- func (nr *NrSpan) SetBaggageItem(key, val string)
- func (nr *NrSpan) SetOperationName(operationName string)
- func (nr *NrSpan) SetTag(key string, value interface{})
- func (nr *NrSpan) Tracer() leafTracer.Tracer
- type NrSpanContext
- type NrTracer
- func (nr *NrTracer) Extract(carrier interface{}) (leafTracer.SpanContext, error)
- func (nr *NrTracer) Inject(context leafTracer.SpanContext, carrier interface{}) error
- func (nr *NrTracer) SetServiceInfo(name, app, appType string)
- func (nr *NrTracer) StartSpan(operationName string, opts ...leafTracer.StartSpanOption) leafTracer.Span
- func (nr *NrTracer) Stop()
- type NrTransactionSpan
- func (nr *NrTransactionSpan) BaggageItem(key string) string
- func (nr *NrTransactionSpan) Context() leafTracer.SpanContext
- func (nr *NrTransactionSpan) Finish(opts ...leafTracer.FinishOption)
- func (nr *NrTransactionSpan) SetBaggageItem(key, val string)
- func (nr *NrTransactionSpan) SetOperationName(operationName string)
- func (nr *NrTransactionSpan) SetTag(key string, value interface{})
- func (nr *NrTransactionSpan) Tracer() leafTracer.Tracer
- type Segment
- type StartOption
- type StartSpanOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTracing ¶
func InitTracing(options ...StartOption) (leafTracer.Tracer, error)
func TransactionFromContext ¶
func TransactionFromContext(parent context.Context) *newrelic.Transaction
Types ¶
type DataStoreOption ¶
type MessageProducerOption ¶
type MessageProducerOption struct { Library string DestinationType messageDestinationType.Enum DestinationName string DestinationTemporary bool }
type NrSpan ¶
type NrSpan struct {
// contains filtered or unexported fields
}
func (*NrSpan) BaggageItem ¶
BaggageItem implements leafTracer.Span.
func (*NrSpan) Context ¶
func (nr *NrSpan) Context() leafTracer.SpanContext
Context implements leafTracer.Span.
func (*NrSpan) Finish ¶
func (nr *NrSpan) Finish(opts ...leafTracer.FinishOption)
Finish implements leafTracer.Span.
func (*NrSpan) SetBaggageItem ¶
SetBaggageItem implements leafTracer.Span.
func (*NrSpan) SetOperationName ¶
SetOperationName implements leafTracer.Span.
func (*NrSpan) Tracer ¶
func (nr *NrSpan) Tracer() leafTracer.Tracer
Tracer implements leafTracer.Span.
type NrSpanContext ¶
type NrSpanContext struct {
// contains filtered or unexported fields
}
NrSpanContext is an implementation of taniTracer.SpanContext that is for newrelic.
func (*NrSpanContext) Context ¶
func (nr *NrSpanContext) Context() context.Context
Context implements taniTracer.SpanContext.
func (*NrSpanContext) ForeachBaggageItem ¶
func (nr *NrSpanContext) ForeachBaggageItem(handler func(k, v string) bool)
ForeachBaggageItem implements taniTracer.SpanContext.
func (*NrSpanContext) SpanID ¶
func (nr *NrSpanContext) SpanID() string
SpanID implements taniTracer.SpanContext.
func (*NrSpanContext) TraceID ¶
func (nr *NrSpanContext) TraceID() string
TraceID implements taniTracer.SpanContext.
type NrTracer ¶
type NrTracer struct {
// contains filtered or unexported fields
}
func (*NrTracer) Extract ¶
func (nr *NrTracer) Extract(carrier interface{}) (leafTracer.SpanContext, error)
Extract implements leafTracer.Tracer.
func (*NrTracer) Inject ¶
func (nr *NrTracer) Inject(context leafTracer.SpanContext, carrier interface{}) error
Inject implements leafTracer.Tracer.
func (*NrTracer) SetServiceInfo ¶
SetServiceInfo implements leafTracer.Tracer.
func (*NrTracer) StartSpan ¶
func (nr *NrTracer) StartSpan(operationName string, opts ...leafTracer.StartSpanOption) leafTracer.Span
StartSpan implements leafTracer.Tracer.
type NrTransactionSpan ¶
type NrTransactionSpan struct {
// contains filtered or unexported fields
}
func (*NrTransactionSpan) BaggageItem ¶
func (nr *NrTransactionSpan) BaggageItem(key string) string
BaggageItem implements leafTracer.Span.
func (*NrTransactionSpan) Context ¶
func (nr *NrTransactionSpan) Context() leafTracer.SpanContext
Context implements leafTracer.Span.
func (*NrTransactionSpan) Finish ¶
func (nr *NrTransactionSpan) Finish(opts ...leafTracer.FinishOption)
Finish implements leafTracer.Span.
func (*NrTransactionSpan) SetBaggageItem ¶
func (nr *NrTransactionSpan) SetBaggageItem(key, val string)
SetBaggageItem implements leafTracer.Span.
func (*NrTransactionSpan) SetOperationName ¶
func (nr *NrTransactionSpan) SetOperationName(operationName string)
SetOperationName implements leafTracer.Span.
func (*NrTransactionSpan) SetTag ¶
func (nr *NrTransactionSpan) SetTag(key string, value interface{})
SetTag implements leafTracer.Span.
func (*NrTransactionSpan) Tracer ¶
func (nr *NrTransactionSpan) Tracer() leafTracer.Tracer
Tracer implements leafTracer.Span.
type StartOption ¶
type StartOption interface {
Apply(o *startOption)
}
func WithAppName ¶
func WithAppName(appName string) StartOption
func WithDistributedTracing ¶
func WithDistributedTracing(distributedTracing bool) StartOption
func WithLicense ¶
func WithLicense(license string) 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