instrumentation

package
Version: v0.1.1-rc.0...-b1cb3b4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: Apache-2.0, CC-BY-4.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallLogger

type CallLogger interface {
	// Observe some intermediate point in the function call.
	Observe(string, ...interface{})

	// Call this when the function returns. Usually use in a defer call.
	Returned()
}

CallLogger is used to log the entry and exit of a function, including whether a context has been completed. It can also be used to observe any interesting events in between.

func NewCallLogger

func NewCallLogger(ctx context.Context, functionName string, logr *logger.LocLoggingEntry) CallLogger

NewCallLogger creates a new logger for a function with an optional context.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL