Skip to content

Commit

Permalink
feat: use otelx instrumentedsql
Browse files Browse the repository at this point in the history
  • Loading branch information
icyphox committed Apr 20, 2022
1 parent a1253a8 commit bb3d2a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/driver/pop_connection.go
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/cenkalti/backoff/v3"
"github.com/gobuffalo/pop/v6"
"github.com/luna-duclos/instrumentedsql"
"github.com/luna-duclos/instrumentedsql/opentracing"
otelsql "github.com/ory/x/otelx/sql"
"github.com/ory/x/sqlcon"
"github.com/pkg/errors"
)
Expand All @@ -18,7 +18,7 @@ func (r *RegistryDefault) PopConnectionWithOpts(ctx context.Context, popOpts ...
var opts []instrumentedsql.Opt
if tracer.IsLoaded() {
opts = []instrumentedsql.Opt{
instrumentedsql.WithTracer(opentracing.NewTracer(true)),
instrumentedsql.WithTracer(otelsql.NewTracer()),
instrumentedsql.WithOmitArgs(),
}
}
Expand Down

0 comments on commit bb3d2a2

Please sign in to comment.