httpmw

package
v0.0.0-...-0b07a2b Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromRequest

func FromRequest(r *http.Request) *ecsevent.SpanMonitor

FromRequest gets a SpanMonitor from the request context.

Middleware never puts a global monitor in a context. If needed, the global monitor can be obtained by asking the span monitor for its parent.

func NewHandler

func NewHandler(monitor ecsevent.Monitor) func(http.Handler) http.Handler

NewHandler uses a Monitor to inject SpanMonitors into request contexts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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