Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/technologize/otel-go-contrib
- Owner: technologize
- License: apache-2.0
- Created: 2022-02-01T10:02:58.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-11T16:39:40.000Z (10 months ago)
- Last Synced: 2024-11-14T14:28:31.978Z (2 months ago)
- Topics: gin, metrics, opentelemetry
- Language: Go
- Homepage:
- Size: 132 KB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```