-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds tracing feature flag for deadpool-sync and sqlite. (#238)
With deadpool-sqlite, the database interactions happen in a sync context (due to using rusqlite) on a separate thread. The tracing crate can add conetxt to any logs (events). Due to the database interactions happening on a separate thread, this context gets lost. Enabling the tracing feature allows the information to be preserved. Related: dbrgn/tracing-test#23 Note: I don't know if this is something that should rather be implemented in the `spawn_blocking` method of Tokio.
- Loading branch information
Showing
4 changed files
with
10 additions
and
0 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