trace

package
v0.0.0-...-cbea63e Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: Apache-2.0, MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(rw http.ResponseWriter, traceInfo *APITraceInfo)

Write makes a decision as to what we should attach to the output based on trace

Types

type APITraceInfo

type APITraceInfo struct {
	// The ID given to the trace. If this is a blank string, tracing is not enabled
	TraceId         string
	PersistentTrace bool
}

func Start

func Start(r *http.Request) *APITraceInfo

Start will decide if we should trace a request, and if so, trigger a "start" event, which indicates we have kicked off a trace at our borders (the API layer)

Jump to

Keyboard shortcuts

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