tracex

package
v1.0.0-beta.225 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 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) *Span[T]

func (*Span[T]) Wrap

func (s *Span[T]) Wrap(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) *SpanNoValue

func (*SpanNoValue) Wrap

func (s *SpanNoValue) Wrap(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