-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change adds support for breadcrumbs as a first-class field on our occurrences. Breadcrumbs are now a way to store a list of strings indicating in which order they were added, so they can be used to track which code was executed and on which order. They are managed per-process (which in Phoenix means per-request in general) * A new section in occurrence detail LiveView was added * Some helper functions to add and list breadcrumbs were added * The integration with `Ash` and `Splode` was updated to match the new system * Some tests were added * A new migration was added to create the new field --------- Co-authored-by: crbelaus <[email protected]>
- Loading branch information
Showing
13 changed files
with
208 additions
and
22 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defmodule ErrorTracker.Migration.MySQL.V04 do | ||
@moduledoc false | ||
|
||
use Ecto.Migration | ||
|
||
def up(_opts) do | ||
alter table(:error_tracker_occurrences) do | ||
add :breadcrumbs, :json, null: true | ||
end | ||
end | ||
|
||
def down(_opts) do | ||
alter table(:error_tracker_occurrences) do | ||
remove :breadcrumbs | ||
end | ||
end | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defmodule ErrorTracker.Migration.Postgres.V04 do | ||
@moduledoc false | ||
|
||
use Ecto.Migration | ||
|
||
def up(_opts) do | ||
alter table(:error_tracker_occurrences) do | ||
add :breadcrumbs, {:array, :string}, default: [], null: false | ||
end | ||
end | ||
|
||
def down(_opts) do | ||
alter table(:error_tracker_occurrences) do | ||
remove :breadcrumbs | ||
end | ||
end | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defmodule ErrorTracker.Migration.SQLite.V04 do | ||
@moduledoc false | ||
|
||
use Ecto.Migration | ||
|
||
def up(_opts) do | ||
alter table(:error_tracker_occurrences) do | ||
add :breadcrumbs, {:array, :string}, default: [], null: false | ||
end | ||
end | ||
|
||
def down(_opts) do | ||
alter table(:error_tracker_occurrences) do | ||
remove :breadcrumbs | ||
end | ||
end | ||
end |
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
Oops, something went wrong.