-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle :phoenix, :endpoint events in EventHandler (#90)
* Handle :phoenix, :endpoint events in EventHandler Previously, the EventHandler ignored endpoint events, mostly because of difficulty determining the root span, as the endpoint and router_dispatch spans close in reverse order. Because of the addition of the root_span functions, this can now be solved, as span data can be set on the root span directly. This patch moves the span data to the phoenix_endpoint_stop function, which also causes spans to start earlier in the request. That, in turn, means that plugs can be instrumented without changes once again. Closes #83. * Update .changesets/add-endpoint-events-to-phoenix-request-traces.md Co-authored-by: Tom de Bruijn <tom@tomdebruijn.com> --------- Co-authored-by: Tom de Bruijn <tom@tomdebruijn.com>
- Loading branch information
1 parent
bda6aa4
commit 9e24eef
Showing
3 changed files
with
76 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
bump: "minor" | ||
type: "add" | ||
--- | ||
|
||
Add endpoint events to Phoenix request traces to instrument more events of the request lifetime. |
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