Skip to content

Commit

Permalink
chore(data-warehouse): add sentry logging (#19995)
Browse files Browse the repository at this point in the history
add sentry logging
  • Loading branch information
EDsCODE authored Jan 26, 2024
1 parent 278383e commit 7f79a26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions posthog/warehouse/models/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from django.db.models import Q
from .credential import DataWarehouseCredential
from uuid import UUID
from sentry_sdk import capture_exception

CLICKHOUSE_HOGQL_MAPPING = {
"UUID": StringDatabaseField,
Expand Down Expand Up @@ -99,6 +100,7 @@ def get_columns(self, safe_expose_ch_error=True):
},
)
except Exception as err:
capture_exception(err)
if safe_expose_ch_error:
self._safe_expose_ch_error(err)
else:
Expand Down

0 comments on commit 7f79a26

Please sign in to comment.