Skip to content

Commit

Permalink
Update contrib/gorm.io/gorm.v1/example_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgajg1134 committed Apr 15, 2022
1 parent 1372eb1 commit 566dc60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/gorm.io/gorm.v1/example_test.go
Expand Up @@ -41,7 +41,7 @@ func ExampleOpen() {
db.Where("name = ?", "jinzhu").First(&user)
}

func Example_context() {
func ExampleContext() {
// Register augments the provided driver with tracing, enabling it to be loaded by gormtrace.Open.
sqltrace.Register("pgx", &stdlib.Driver{}, sqltrace.WithServiceName("my-service"))
sqlDb, err := sqltrace.Open("pgx", "postgres://pqgotest:password@localhost/pqgotest?sslmode=disable")
Expand Down

0 comments on commit 566dc60

Please sign in to comment.