trace

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package trace provides tracing integration for the error handling system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddErrorToSpan

func AddErrorToSpan(ctx context.Context, err error)

AddErrorToSpan adds error information to the current span. It extracts error details like code, operation, and details if available.

func AddErrorToSpanWithAttributes

func AddErrorToSpanWithAttributes(ctx context.Context, err error, attrs ...attribute.KeyValue)

AddErrorToSpanWithAttributes adds error information to the current span with additional attributes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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