forked from highlight/highlight
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow filtering for errors with sessions (highlight#6728)
## Summary Adds the `HasSession` column to clickhouse error objects for searching for errors with sessions. Stores the session id on clickhouse error objects in case we have a use for that. ## How did you test this change? Local deploy <img width="1644" alt="Screenshot 2023-09-26 at 1 37 31 PM" src="https://github.com/highlight/highlight/assets/1351531/fe35a175-b890-4bfb-8fe6-3d09b90321da"> <img width="1074" alt="Screenshot 2023-09-26 at 2 03 42 PM" src="https://github.com/highlight/highlight/assets/1351531/d3938e95-b2f3-40e3-b15d-33bbb52725f5"> ## Are there any deployment considerations? Will backfill data with https://github.com/highlight/highlight/blob/main/backend/migrations/cmd/backfill-errors-clickhouse/main.go#L1 ## Does this work require review from our design team? Yes @julian-highlight
- Loading branch information
Showing
12 changed files
with
84 additions
and
18 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
2 changes: 2 additions & 0 deletions
2
backend/clickhouse/migrations/000040_add_error_object_has_session.down.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,2 @@ | ||
alter table error_objects | ||
drop column HasSession; |
2 changes: 2 additions & 0 deletions
2
backend/clickhouse/migrations/000040_add_error_object_has_session.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,2 @@ | ||
alter table error_objects | ||
add column HasSession Boolean; |
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
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
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
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
Binary file added
BIN
+130 KB
highlight.io/public/images/docs/filtering-errors/error-object-with-session.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.