Skip to content

dustin/yellow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yellow helps raise awareness of functions that are taking longer than expected.

In the most simple cases, you can log slow tasks (with whatever context you want to supply), but you can also react to slowness by having code perform some task on timeout. See the documentation for details and examples.

Example

Basic usage (send slow invocations to the standard logger):

func ExampleDeadlineLog() {
	defer DeadlineLog(time.Second, "Doing thing %d", 1).Done()
	// do something that should take less than a second, log
	// otherwise
}

Coverage Status

Releases

No releases published

Packages

 
 
 

Languages