tracing

package
v0.0.0-...-ab1ce89 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: BSD-3-Clause Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventAdder

func EventAdder() func(Context, *event.Event, error)

func HTTPSpanStarter

func HTTPSpanStarter(tracer Tracer) func(*http.Request, string) (Context, func(Context))

HTTPSpanStarter returns a function which can be used as webserver.Config.StartSpan callback.

func Source

func Source(s source.Source, tracer Tracer) source.Source

func SpanStarter

func SpanStarter(tracer Tracer) func(Context, api.Op) (Context, func(Context))

SpanStarter returns a function which can be used as server.Config.StartSpan callback.

func TraceDetacher

func TraceDetacher() func(Context) Context

Types

type Tracer

type Tracer interface {
	Start(ctx Context, spanName string, opts ...trace.SpanStartOption) (Context, trace.Span)
}

Tracer is a less restrictive edition of trace.Tracer.

Jump to

Keyboard shortcuts

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