From 6e1f5454be3ff00b0016e3d72b121701ccd23625 Mon Sep 17 00:00:00 2001 From: Arne Luenser Date: Thu, 6 Apr 2023 09:36:36 +0200 Subject: [PATCH] fix: reduce SQL tracing noise (#3481) --- driver/registry_sql.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/driver/registry_sql.go b/driver/registry_sql.go index 5efd273d111..7660a884c90 100644 --- a/driver/registry_sql.go +++ b/driver/registry_sql.go @@ -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), } }