ocmux

package
v0.0.0-...-2c400ab Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitOpenCensusWithZipkin

func InitOpenCensusWithZipkin(zipkinURL, serviceName, hostPort string) io.Closer

InitOpenCensusWithZipkin initializes the OpenCensus Zipkin Exporter.

func Middleware

func Middleware() mux.MiddlewareFunc

Middleware holds a Gorilla Mux middleware to update the OpenCensus span name. This is typically used in an HTTP server using Gorilla Mux for routing.

func NameFromGorillaMux

func NameFromGorillaMux(router *mux.Router) func(*http.Request) string

NameFromGorillaMux inspects the HTTP Request to see if it can extract the followed HTTP route to generate the needed OpenCensus span name. If not possible it will default to the URL Path. This is typically used in an HTTP client when using Gorilla Mux as URL constructor.

Types

This section is empty.

Jump to

Keyboard shortcuts

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