traceutil

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: GPL-3.0 Imports: 7 Imported by: 96

Documentation

Overview

Package traceutil includes useful functions for opentracing annotations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnotateError

func AnnotateError(span *trace.Span, err error)

AnnotateError on span. This should be used any time a particular span experiences an error.

func RecoveryHandlerFunc

func RecoveryHandlerFunc(ctx context.Context, p interface{}) error

RecoveryHandlerFunc is a function that recovers from the panic `p` by returning an `error`. The context can be used to extract request scoped metadata and context values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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