leafNewRelicTracer

package module
v0.0.0-...-0829b1e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2022 License: MIT Imports: 15 Imported by: 6

README

New Relic Tracer

Documentation

Index

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 DataStoreOption struct {
	Collection         string
	Operation          string
	ParameterizedQuery string
	QueryParameters    []interface{}
	DatabaseName       string
	DatastoreProduct   newrelic.DatastoreProduct
}

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

func (nr *NrSpan) BaggageItem(key string) string

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

func (nr *NrSpan) SetBaggageItem(key, val string)

SetBaggageItem implements leafTracer.Span.

func (*NrSpan) SetOperationName

func (nr *NrSpan) SetOperationName(operationName string)

SetOperationName implements leafTracer.Span.

func (*NrSpan) SetTag

func (nr *NrSpan) SetTag(key string, value interface{})

SetTag 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

func (nr *NrTracer) SetServiceInfo(name, app, appType string)

SetServiceInfo implements leafTracer.Tracer.

func (*NrTracer) StartSpan

func (nr *NrTracer) StartSpan(operationName string, opts ...leafTracer.StartSpanOption) leafTracer.Span

StartSpan implements leafTracer.Tracer.

func (*NrTracer) Stop

func (nr *NrTracer) Stop()

Stop 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

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 Segment

type Segment interface {
	AddAttribute(key string, val interface{})
	End()
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL