trace

package
v0.7.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndSpanErr

func EndSpanErr(span trace.Span, err error)

EndSpanErr records the error to the span if not nil, and then ends the span. NOTE: This should be called like so:

defer func() { EndSpanErr(span, err) }

and not like this:

defer EndSpanErr(span, err)

This is due to the fact that the latter captures the error value at the point in time of the defer line, whilst the former will capture the final error value at the very end of the function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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