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 3b1d87e commit 86a691a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver/registry_sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ func (m *RegistrySQL) Init(
if m.Tracer(ctx).IsLoaded() {
opts = []instrumentedsql.Opt{
instrumentedsql.WithTracer(otelsql.NewTracer()),
instrumentedsql.WithOmitArgs(), // don't risk leaking PII or secrets
instrumentedsql.WithOpsExcluded(instrumentedsql.OpSQLRowsNext),
}
}

Expand Down

0 comments on commit 86a691a

Please sign in to comment.