From 087d6c92c92fde1e0a2e3ea9f55bcab80de3be33 Mon Sep 17 00:00:00 2001 From: Thomas Hipp Date: Mon, 10 Mar 2025 15:55:37 +0100 Subject: [PATCH] postgres/hooks: Add `data:privacy` and `data:security` flags --- backend/postgres/hooks/logging.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/postgres/hooks/logging.go b/backend/postgres/hooks/logging.go index 384b41541..a3b705861 100644 --- a/backend/postgres/hooks/logging.go +++ b/backend/postgres/hooks/logging.go @@ -61,7 +61,9 @@ func (h *LoggingHook) AfterQuery(ctx context.Context, event *bun.QueryEvent) { // add general info logEvent := logger.Debug(). Float64("duration", dur). - Str("sentry:category", "postgres") + Str("sentry:category", "postgres"). + Bool("data:security", true). + Bool("data:privacy", true) // add error or result set info if event.Err != nil {