instrumentation

package
v0.0.0-...-4e3790f Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0, CC-BY-4.0, MIT Imports: 6 Imported by: 1

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.

Jump to

Keyboard shortcuts

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