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
¶
Restful OpenTelemetry instrumentation example
Quickstart
Install
otelrestful:
go get go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful
Then install OpenTelemetry filter:
filter := otelrestful.OTelFilter("service-name")
restful.DefaultContainer.Filter(filter)
Example
To run this example:
UPTRACE_DSN="https://<token>@api.uptrace.dev/<project_id>" go run main.go
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.