command
module
Version:
v0.0.0-...-00c83e7
Opens a new window with list of versions in this module.
Published: Nov 1, 2021
License: BSD-2-Clause
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Macaron OpenTelemetry instrumentation example

Quickstart
Install
otelmacaron
instrumentation:
go get go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron
Then install OpenTelemetry middleware:
m := macaron.Classic()
m.Use(otelmacaron.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.