command
module
Version:
v0.0.0-...-316a413
Opens a new window with list of versions in this module.
Published: Oct 7, 2021
License: BSD-2-Clause
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Gorilla Mux OpenTelemetry instrumentation example

Quickstart
Install
otelmux:
go get go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux
Then install OpenTelemetry middleware:
r := mux.NewRouter()
r.Use(otelmux.Middleware("service-name"))
Example
To run this example:
UPTRACE_DSN="https://<token>@api.uptrace.dev/<project_id>" make
Then open http://localhost:9999
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.