atgormv2

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

README

atgormv2

Package atgormv2 provides drivers to gorm.io/gorm for tracing database operations as spans of a transaction traced by Atatus.

Usage

Swap gorm.io/driver/* to go.atatus.com/agent/module/atgormv2/driver/*

Example :-

import (
    mysql "go.atatus.com/agent/module/atgormv2/driver/mysql"
    "gorm.io/gorm"
)	

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

Documentation

Overview

Package atgormv2 provides wrappers for tracing GORM operations.

Directories

Path Synopsis
driver
mysql
Package atmysql imports the gorm mysql dialect package, and also registers the mysql driver with atsql.
Package atmysql imports the gorm mysql dialect package, and also registers the mysql driver with atsql.
postgres
Package atpostgres imports the gorm mysql dialect package, and also registers the mysql driver with atsql.
Package atpostgres imports the gorm mysql dialect package, and also registers the mysql driver with atsql.
sqlite
Package atsqlite imports the gorm sqlite dialect package, and also registers the sqlite3 driver with atsql.
Package atsqlite imports the gorm sqlite dialect package, and also registers the sqlite3 driver with atsql.

Jump to

Keyboard shortcuts

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