gormotel

package module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 5 Imported by: 0

README

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
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugin = &plugin{tracer: otel.Tracer("gorm")}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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