o11ynethttp

package
v1.0.537-11f746b Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package o11ynethttp provides common http middleware for tracing requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(provider o11y.Provider, name string, handler http.Handler) http.Handler

Middleware returns an http.Handler which wraps an http.Handler and adds an o11y.Provider to the context. A new span is created from the request headers.

This code is based on github.com/beeline-go/wrappers/hnynethttp/nethttp.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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