Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 474 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 474 Bytes

otel-go-contrib

Usage

Gin HTTP Metrics using Opentelemetry

import "github.com/technologize/otel-go-contrib/otelginmetrics"
router := gin.Default()
router.Use(otelginmetrics.Middleware("hello world"))

HTTP Client Metrics using Opentelemetry

import "github.com/technologize/otel-go-contrib/otelhttpmetrics"
transport := otelhttpmetrics.NewTransport(http.DefaultTransport)
client := http.DefaultClient
client.Transport = transport