Skip to content

technologize/otel-go-contrib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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