instrument

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package instrument implements instrumentation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timer

type Timer interface {
	End(...zap.Field)
}

Timer logs a duration to a logger.

func Start

func Start(logger *zap.Logger, message string, fields ...zap.Field) Timer

Start returns a new Timer.

Jump to

Keyboard shortcuts

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