Skip to content

Commit

Permalink
fix: reduce SQL tracing noise (ory#3481)
Browse files Browse the repository at this point in the history
  • Loading branch information
alnr authored and harnash committed Apr 12, 2023
1 parent 0dd05a7 commit 82b3ce8
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 82b3ce8

Please sign in to comment.