Normalize the SQL queries before sending them to Sentry
To prevent sending some sensitive information, we need to normalize the SQL queries before we send them to Sentry. To do so, we decided to use the gem called `pg_query` which compiles some parts of the PostgreSQL database to make it possible to parse SQL queries.
Showing
... | @@ -307,6 +307,9 @@ gem 'rack-attack', '~> 6.3.0' | ... | @@ -307,6 +307,9 @@ gem 'rack-attack', '~> 6.3.0' |
# Sentry integration | # Sentry integration | ||
gem 'sentry-raven', '~> 3.0' | gem 'sentry-raven', '~> 3.0' | ||
# PostgreSQL query parsing | |||
gem 'pg_query', '~> 1.2' | |||
gem 'premailer-rails', '~> 1.10.3' | gem 'premailer-rails', '~> 1.10.3' | ||
# LabKit: Tracing and Correlation | # LabKit: Tracing and Correlation | ||
... | ... |
Please register or sign in to comment