apmgormv2

package module
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2021 License: Apache-2.0 Imports: 0 Imported by: 1

README

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{})

Documentation

Overview

Package apmgormv2 provides wrappers for tracing GORM operations.

Directories

Path Synopsis
driver
mysql
Package apmmysql imports the gorm mysql dialect package, and also registers the mysql driver with apmsql.
Package apmmysql imports the gorm mysql dialect package, and also registers the mysql driver with apmsql.
postgres
Package apmpostgres imports the gorm mysql dialect package, and also registers the mysql driver with apmsql.
Package apmpostgres imports the gorm mysql dialect package, and also registers the mysql driver with apmsql.
sqlite
Package apmsqlite imports the gorm sqlite dialect package, and also registers the sqlite3 driver with apmsql.
Package apmsqlite imports the gorm sqlite dialect package, and also registers the sqlite3 driver with apmsql.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL