-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: include extra columns for errors reporting table (#4891)
* chore: include extra columns for errors reporting table * chore: update insertion logic to include new columns - add db migration script to include new columns in error_detail_reports table - refactor reporting types * chore: fix alter query and send sampleEvent as string in Report fn * chore: refactor error reporting types * fix: update count logic * chore: lint errors --------- Co-authored-by: Sai Sankeerth <[email protected]> Co-authored-by: Dilip Kola <[email protected]>
- Loading branch information
1 parent
009a071
commit 6ca22ca
Showing
4 changed files
with
113 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
sql/migrations/error_detail_reports/000002_alter_error_detail_reports.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ALTER TABLE error_detail_reports | ||
ADD COLUMN IF NOT EXISTS sample_event JSONB DEFAULT '{}'::JSONB, | ||
ADD COLUMN IF NOT EXISTS sample_response TEXT DEFAULT '', | ||
ADD COLUMN IF NOT EXISTS event_name TEXT DEFAULT ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters