You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sentry support (see Add Sentry support #6458) If we use the tracing crate, we could use sentry-tracing. If we directly plug to python, python will handle sending the log to sentry.
This is not as bad as it seems given it only occurs when the log is done from a spawned thread while the initial thread holding the GIL waits on it.
In our bindings we should never need to do that (given we send the work in the tokio thread pool before doing any work).
Another solution to avoid this is to dedicate a background thread to the log (the log functions would then only push a message for this thread, which would itself do the GIL lock). The additional benefit of this approach is it avoids GIL congestion (and hence performance drop) in the Rust threads.
Log support requirement
We also want to have the logs enable during the rust tests Oxidation log in tests #4219
Sentry support(see Add Sentry support #6458)If we use thetracing
crate, we could use sentry-tracing.If we directly plug to python, python will handle sending the log to sentry.Python integration(see Log support: Rust-Python integration #6459)Some interesting links:
If we want to use both
tracing
crate andlog
crate, we could use tracing-log (included by default intracing-subscriber
)Converting
print
intolog
entryeprintln
incore_fs::ManifestStorage::close_connection
tolog::warn
println
intexts_fixtures::testbed::ensure_testbed_server_is_started
tolog::info
log::info
at the end oflocal_db::BackgroundSqliteExecutor::serve
eprintln
inlocal_db::SqliteExecutor::exec
tolog::warn
eprintln
inlocal_db::LocalDatabase::exec_job
tolog::warn
The text was updated successfully, but these errors were encountered: