Skip to content

Commit

Permalink
fix: reduce SQL tracing noise
Browse files Browse the repository at this point in the history
  • Loading branch information
alnr committed Apr 4, 2023
1 parent 1180c05 commit 1650426
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver/registry_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,8 @@ func (m *RegistryDefault) Init(ctx context.Context, ctxer contextx.Contextualize
if m.Tracer(ctx).IsLoaded() {
instrumentedDriverOpts = []instrumentedsql.Opt{
instrumentedsql.WithTracer(otelsql.NewTracer()),
instrumentedsql.WithOpsExcluded(instrumentedsql.OpSQLRowsNext),
instrumentedsql.WithOmitArgs(), // don't risk leaking PII or secrets
}
}
if o.replaceTracer != nil {
Expand Down

0 comments on commit 1650426

Please sign in to comment.