tracing

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElapsedTime

func ElapsedTime(ctx context.Context, span trace.Span, msg string, fn func(context.Context, trace.Span))

func EndSpan

func EndSpan(span trace.Span)

func Exec

func Exec(ctx context.Context, spanName string, opts ...Option)

func FromContext

func FromContext(ctx context.Context) trace.Tracer

func SetAttributes

func SetAttributes(span trace.Span, kvs ...attribute.KeyValue)

func StartSpan

func StartSpan(ctx context.Context, snapName string) (context.Context, trace.Span)

func Trace

func Trace(ctx context.Context, spanName string) (context.Context, trace.Span)

func WithTracer

func WithTracer(ctx context.Context, tr trace.Tracer) context.Context

Types

type Option

type Option func(context.Context, trace.Span)

func WithTime

func WithTime(fn func(context.Context, trace.Span)) Option

Jump to

Keyboard shortcuts

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