tracing

package
v0.0.401 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect0

func Collect0(ctx context.Context, tracer trace.Tracer, name Collected, callback func(context.Context) error, opts ...trace.SpanStartOption) error

func Collect0C added in v0.0.395

func Collect0C(ctx context.Context, name Collected, callback func(context.Context) error, opts ...trace.SpanStartOption) error

func Collect1

func Collect1[T any](ctx context.Context, tracer trace.Tracer, name Collected, callback func(context.Context) (T, error), opts ...trace.SpanStartOption) (T, error)

func Collect1C added in v0.0.395

func Collect1C[T any](ctx context.Context, name Collected, callback func(context.Context) (T, error), opts ...trace.SpanStartOption) (T, error)

func Collect2 added in v0.0.323

func Collect2[T any, R any](ctx context.Context, tracer trace.Tracer, name Collected, callback func(context.Context) (T, R, error), opts ...trace.SpanStartOption) (T, R, error)

func Collect2C added in v0.0.395

func Collect2C[T any, R any](ctx context.Context, name Collected, callback func(context.Context) (T, R, error), opts ...trace.SpanStartOption) (T, R, error)

func CollectAndLog0 added in v0.0.323

func CollectAndLog0(ctx context.Context, tracer trace.Tracer, name Collected, callback func(context.Context) error, opts ...trace.SpanStartOption) error

func CollectAndLog0C added in v0.0.395

func CollectAndLog0C(ctx context.Context, name Collected, callback func(context.Context) error, opts ...trace.SpanStartOption) error

func CollectAndLog1 added in v0.0.323

func CollectAndLog1[T any](ctx context.Context, tracer trace.Tracer, name Collected, callback func(context.Context) (T, error), opts ...trace.SpanStartOption) (T, error)

func CollectAndLog1C added in v0.0.395

func CollectAndLog1C[T any](ctx context.Context, name Collected, callback func(context.Context) (T, error), opts ...trace.SpanStartOption) (T, error)

func CollectAndLogDuration0 added in v0.0.323

func CollectAndLogDuration0(ctx context.Context, tracer trace.Tracer, name Collected, callback func(context.Context) error, opts ...trace.SpanStartOption) error

func CollectAndLogDuration0C added in v0.0.395

func CollectAndLogDuration0C(ctx context.Context, name Collected, callback func(context.Context) error, opts ...trace.SpanStartOption) error

func CollectAndLogDuration1 added in v0.0.323

func CollectAndLogDuration1[T any](ctx context.Context, tracer trace.Tracer, name Collected, callback func(context.Context) (T, error), opts ...trace.SpanStartOption) (T, error)

func CollectAndLogDuration1C added in v0.0.395

func CollectAndLogDuration1C[T any](ctx context.Context, name Collected, callback func(context.Context) (T, error), opts ...trace.SpanStartOption) (T, error)

func LoggerFromAttrs added in v0.0.392

func LoggerFromAttrs(zlb zerolog.Context, attrs []attribute.KeyValue) zerolog.Context

Types

type Collected

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

func Name

func Name(name string) Collected

func (Collected) Attribute

func (c Collected) Attribute(kv ...attribute.KeyValue) Collected

func (Collected) NewRoot added in v0.0.338

func (c Collected) NewRoot() Collected

Jump to

Keyboard shortcuts

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