Documentation ¶
Overview ¶
Package ppgorm instruments the go-gorm/gorm package (https://github.com/go-gorm/gorm).
This package instruments the go-gorm/gorm calls. Use the Open as the gorm.Open.
g, err := ppgorm.Open(mysql.New(mysql.Config{Conn: db}), &gorm.Config{})
It is necessary to pass the context containing the pinpoint.Tracer to gorm.DB.
g = g.WithContext(pinpoint.NewContext(context.Background(), tracer)) g.Create(&Product{Code: "D42", Price: 100})
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.