Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elricli/gormotel
OpenTelemetry plugin for GORM
https://github.com/elricli/gormotel
go golang gorm opentelemetry tracing
Last synced: 3 months ago
JSON representation
OpenTelemetry plugin for GORM
- Host: GitHub
- URL: https://github.com/elricli/gormotel
- Owner: elricli
- License: mit
- Created: 2021-03-22T07:06:20.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-11T07:11:28.000Z (about 3 years ago)
- Last Synced: 2024-09-27T07:02:30.397Z (3 months ago)
- Topics: go, golang, gorm, opentelemetry, tracing
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gormotel
OpenTelemetry plugin for [GORM](https://gorm.io)
## Usage
```go
db, err := gorm.Open(mysql.Open("dsn"), &gorm.Config{})
if err != nil {
return err
}
// Use plugin
if err := db.Use(gormotel.Plugin); err != nil {
return err
}
```