traces

package
v0.32.1-rc Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectTraces

func CollectTraces() (cancel func())

CollectTraces starts storing all known tagged traces on disk, until cancel is called

func Tag

func Tag(ctx context.Context, tag TraceTag)

Tag tags a trace with the given tag

func TagScope

func TagScope(tag TraceTag, scope *monkit.Scope)

TagScope tags all functions on an entire monkit Scope with a given tag

Types

type TraceTag

type TraceTag int

TraceTag is a type to keep track of different types of tags for traces

const (
	// TagDB tags a trace as hitting the database
	TagDB TraceTag = 1
)

Jump to

Keyboard shortcuts

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