tracing

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package tracing provides utility functions for manual span creation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithSpan

func WithSpan(ctx context.Context, name string, fn func(context.Context) error) error

WithSpan executes fn within a new span. Errors are automatically recorded.

func WithSpanResult

func WithSpanResult[T any](ctx context.Context, name string, fn func(context.Context) (T, error)) (T, error)

WithSpanResult executes fn within a new span and returns the result. Errors are automatically recorded on the span.

Types

This section is empty.

Jump to

Keyboard shortcuts

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