observability

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTraceParentOfCurrentSpan

func GetTraceParentOfCurrentSpan(ctx context.Context) string

func StartJobSpan

func StartJobSpan[Result any](ctx context.Context, tracer oteltrace.Tracer, spanName string, job *workflowsv1.Job, f func(ctx context.Context) (Result, error)) (Result, error)

func WithSpan

func WithSpan(ctx context.Context, tracer oteltrace.Tracer, name string, f func(ctx context.Context) error) error

WithSpan wraps a function call with a tracing span of the given name

func WithSpanResult

func WithSpanResult[Result any](ctx context.Context, tracer oteltrace.Tracer, name string, f func(ctx context.Context) (Result, error)) (Result, error)

WithSpanResult wraps a function call that returns a result and an error with a tracing span of the given name

Types

type Service

type Service struct {
	Name    string // Name represents the logical name of the service.
	Version string // Version represents the version of the service, e.g. "2.0.0".
}

Service represents the service being monitored.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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