Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 403 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 403 Bytes

apmgormv2

Package apmgormv2 provides drivers to gorm.io/gorm for tracing database operations as spans of a transaction traced by Elastic APM.

Usage

Swap gorm.io/driver/* to go.elastic.co/apm/module/apmgormv2/driver/*

Example :-

import (
    mysql "go.elastic.co/apm/module/apmgormv2/driver/mysql"
    "gorm.io/gorm"
)	

db, err := gorm.Open(mysql.Open("dsn"), &gorm.Config{})