middleware

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderNameOpencensusSpan = "X-Opencensus-Span"

Variables

This section is empty.

Functions

func AddTracingSpanToRequest added in v0.0.2

func AddTracingSpanToRequest(ctx context.Context, req *http.Request)

AddTracingSpanToRequest resolves span data from the provided context and injects it to the request

func OpencensusTracing

func OpencensusTracing() func(next http.Handler) http.Handler

OpencensusTracing implements a simple middleware handler for adding an opencensus tracing span to the request context

Types

This section is empty.

Jump to

Keyboard shortcuts

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