present

package
v4.0.0-...-62d2285 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SampledCBKey = "sampled-cb"
)

Variables

This section is empty.

Functions

func HTTP

func HTTP(r *monkit.Registry) http.Handler

HTTP makes an http.Handler out of a Registry. It serves paths using this package's FromRequest request router. Usually HTTP is called with the Default registry.

func SpansToJSON

func SpansToJSON(w io.Writer, spans []*collect.FinishedSpan) error

SpansToJSON turns a list of FinishedSpans into JSON format.

func SpansToSVG

func SpansToSVG(w io.Writer, spans []*collect.FinishedSpan) error

SpansToSVG takes a list of FinishedSpans and writes them to w in SVG format. It draws a trace using the Spans where the Spans are ordered by start time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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