macaron.v1

command module
v0.0.0-...-00c83e7 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: BSD-2-Clause Imports: 7 Imported by: 0

README

Macaron OpenTelemetry instrumentation example

PkgGoDev

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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