Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/technologize/otel-go-contrib

Open Telemetry Go Contrib
https://github.com/technologize/otel-go-contrib

gin metrics opentelemetry

Last synced: 3 days ago
JSON representation

Open Telemetry Go Contrib

Awesome Lists containing this project

README

        

# otel-go-contrib

## Usage

### Gin HTTP Metrics using Opentelemetry

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

### HTTP Client Metrics using Opentelemetry

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