tracing

package
v0.3.56 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderFlyTraceId = "fly-trace-id"
	HeaderFlySpanId  = "fly-span-id"
)

Variables

This section is empty.

Functions

func CMDSpan added in v0.1.148

func CMDSpan(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

func CreateLinkSpan added in v0.1.148

func CreateLinkSpan(ctx context.Context, res *http.Response)

func GetTracer

func GetTracer() trace.Tracer

func InitTraceProvider

func InitTraceProvider(ctx context.Context, appName string) (*sdktrace.TracerProvider, error)

func InitTraceProviderWithoutApp added in v0.2.37

func InitTraceProviderWithoutApp(ctx context.Context) (*sdktrace.TracerProvider, error)

func NewTransport

func NewTransport(inner http.RoundTripper) http.RoundTripper

func RecordError

func RecordError(span trace.Span, err error, description string)

func SpanContextFromHeaders added in v0.1.148

func SpanContextFromHeaders(res *http.Response) trace.SpanContext

Types

type InstrumentedTransport

type InstrumentedTransport struct {
	// contains filtered or unexported fields
}

func (*InstrumentedTransport) RoundTrip

func (t *InstrumentedTransport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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