detect

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 25 Imported by: 90

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceName string

Functions

func MeterProvider added in v0.13.0

func MeterProvider() (metric.MeterProvider, error)

func OverrideResource added in v0.13.0

func OverrideResource(res *resource.Resource)

OverrideResource overrides the resource returned from Resource.

This must be invoked before Resource is called otherwise it is a no-op.

func Register

func Register(name string, exp ExporterDetector, priority int)

func Resource added in v0.12.5

func Resource() *resource.Resource

func Shutdown

func Shutdown(ctx context.Context) error

func TracerProvider

func TracerProvider() (trace.TracerProvider, error)

Types

type ExporterDetector

type ExporterDetector func() (sdktrace.SpanExporter, sdkmetric.Exporter, error)

type TraceRecorder added in v0.11.0

type TraceRecorder struct {
	sdktrace.SpanExporter
	// contains filtered or unexported fields
}
var Recorder *TraceRecorder

func NewTraceRecorder added in v0.11.0

func NewTraceRecorder() *TraceRecorder

func (*TraceRecorder) ExportSpans added in v0.11.0

func (r *TraceRecorder) ExportSpans(ctx context.Context, spans []sdktrace.ReadOnlySpan) error

func (*TraceRecorder) Record added in v0.11.0

func (r *TraceRecorder) Record(traceID trace.TraceID) func() []tracetest.SpanStub

func (*TraceRecorder) Shutdown added in v0.11.0

func (r *TraceRecorder) Shutdown(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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