module
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Jan 12, 2024
License: Apache-2.0
Opens a new window with license information.
README
¶
otel-go-contrib
Usage
Gin HTTP Metrics using Opentelemetry
import "github.com/userwerk/otel-go-contrib/otelginmetrics"
router := gin.Default()
router.Use(otelginmetrics.Middleware("hello world"))
HTTP Client Metrics using Opentelemetry
import "github.com/userwerk/otel-go-contrib/otelhttpmetrics"
transport := otelhttpmetrics.NewTransport(http.DefaultTransport)
client := http.DefaultClient
client.Transport = transport
Directories
¶
Click to show internal directories.
Click to hide internal directories.