activetrace

package
v0.0.4-b Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefineMetricsFunc

func DefineMetricsFunc(subsystem string) activegraph.ClosureDef

DefineMetricsFunc retruns a closure to measure the duration of the function.

func DefineTracingFunc

func DefineTracingFunc(tracer opentracing.Tracer) activegraph.ClosureDef

func TracingCallback

func TracingCallback(tracer opentracing.Tracer) activegraph.AroundCallback

TracingCallback returns an http.Handler with opentracing context.

The new Handler calls h.ServeHTTP to handle each request, it open span on each new request, logs query and variables, then closes span when handler finishes execution.

Types

This section is empty.

Jump to

Keyboard shortcuts

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