Documentation
¶
Index ¶
Constants ¶
View Source
const TracerName = "orm"
TracerName is the tracer name for ORM operations.
Variables ¶
This section is empty.
Functions ¶
func NewOrmTracerPlugin ¶
func NewOrmTracerPlugin(tracerProvider trace.TracerProvider, withValues bool) gorm.Plugin
NewOrmTracerPlugin returns a new OrmTracerPlugin.
Types ¶
type OrmRegisterer ¶
OrmRegisterer is the interface for compatibility with Gorm plugins.
type OrmTracerPlugin ¶
type OrmTracerPlugin struct {
// contains filtered or unexported fields
}
OrmTracerPlugin is the Gorm tracing plugin.
func (*OrmTracerPlugin) Initialize ¶
func (p *OrmTracerPlugin) Initialize(db *gorm.DB) error
Initialize is called upon plugin initialization.
func (*OrmTracerPlugin) Name ¶
func (p *OrmTracerPlugin) Name() string
Name returns the plugin name.
Click to show internal directories.
Click to hide internal directories.