Skip to content

elricli/gormotel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gormotel

OpenTelemetry plugin for GORM

Usage

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
}