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)
Click to show internal directories.
Click to hide internal directories.