trace

package module
v0.0.0-...-04d6826 Latest Latest
Warning

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

Go to latest
Published: May 23, 2016 License: BSD-2-Clause Imports: 3 Imported by: 0

README

trace

Trace provides convenience functions for handling Trace instances (see http://godoc.org/golang.org/x/net/trace#Trace) from within Contexts (see http://godoc.org/golang.org/x/net/context#Context).

Documentation

Overview

Package trace provides convenience functions for interfacting with Trace instances within context.Contexts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LazyLog

func LazyLog(ctx context.Context, x fmt.Stringer, sensitive bool)

LazyLog is a light wrapper around golang.org/x/net/trace/Trace.LazyLog which extracts the Trace instance from ctx and calls LazyLog on it. If no Trace instance is attached to the context then this method returns immediately.

func LazyPrintf

func LazyPrintf(ctx context.Context, format string, a ...interface{})

LazyPrintf is a light wrapper around golang.org/x/net/trace/Trace.LazyPrintf which extracts a Trace instance from ctx and calls LazyPrintf on it. If no Trace instance is attached to the context then this method returns immediately.

func SetError

func SetError(ctx context.Context)

SetError is a light wrapper around golang.org/x/net/trace/Trace.SetError which extracts a Trace instance from ctx and calls SetError on it. If no Trace instance is attached to the context then this method returns immediately.

Types

This section is empty.

Jump to

Keyboard shortcuts

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