detect

package
v0.0.0-...-2745715 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceName string

Functions

func Exporter

func Exporter() (sdktrace.SpanExporter, error)

func Register

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

func Shutdown

func Shutdown(ctx context.Context) error

func TracerProvider

func TracerProvider() (trace.TracerProvider, error)

Types

type ExporterDetector

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

type TraceRecorder

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

func NewTraceRecorder

func NewTraceRecorder() *TraceRecorder

func (*TraceRecorder) ExportSpans

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

func (*TraceRecorder) Record

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

func (*TraceRecorder) Shutdown

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