trace

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndSpan

func EndSpan(ctx context.Context, err error)

EndSpan ends a span with the given error.

func StartSpan

func StartSpan(ctx context.Context, name string) context.Context

StartSpan adds a span to the trace with the given name.

func TracePrintf added in v0.37.3

func TracePrintf(ctx context.Context, attrMap map[string]interface{}, format string, args ...interface{})

TODO: (odeke-em): perhaps just pass around spans due to the cost incurred from using trace.FromContext(ctx) yet we could avoid throwing away the work done by ctx, span := trace.StartSpan.

Types

This section is empty.

Jump to

Keyboard shortcuts

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