tracex

package
v1.0.0-beta.216 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func WithOkStatusDescription

func WithOkStatusDescription(desc string) Option

type Options

type Options struct {
	OkStatusDescription string
}

type Span

type Span[T any] struct {
	// contains filtered or unexported fields
}

func Start

func Start[T any](ctx context.Context, tracer trace.Tracer, spanName string, opts ...trace.SpanStartOption) (context.Context, Span[T])

func (Span[T]) Wrap

func (s Span[T]) Wrap(ctx context.Context, fn func(ctx context.Context) (T, error), opts ...Option) (T, error)

type SpanNoValue

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

func StartWithNoValue

func StartWithNoValue(ctx context.Context, tracer trace.Tracer, spanName string, opts ...trace.SpanStartOption) (context.Context, SpanNoValue)

func (SpanNoValue) Wrap

func (s SpanNoValue) Wrap(ctx context.Context, fn func(ctx context.Context) error, opts ...Option) error

Jump to

Keyboard shortcuts

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