Skip to content

Commit

Permalink
fix: reduce SQL tracing noise (#3481)
Browse files Browse the repository at this point in the history
  • Loading branch information
alnr authored Apr 6, 2023
1 parent 3b1d87e commit 6e1f545
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 6e1f545

Please sign in to comment.