Grapevine is a Matrix homeserver, forked from Conduit 0.7.0
Find a file
Lambda ac42e0bfff Fix spans in tokio::spawn-ed tasks
tokio::spawn is a span boundary, the spawned future has no parent span.

For short futures, we simply inherit the current span with
`.in_current_span()`.

For long running futures containing a sleeping infinite loop, we don't
actually want a span on the entire task or even the entire loop body,
both would result in very long spans. Instead, we put the outermost span
(created using #[tracing::instrument] or .instrument()) around the
actual work happening after the sleep, which results in a new root span
being created after every sleep.
2024-05-20 16:49:40 +00:00
bin build and cache all packages and CI dependencies 2024-05-14 20:08:37 -07:00
nix add conduit compat mode 2024-05-14 20:21:51 -07:00
src Fix spans in tokio::spawn-ed tasks 2024-05-20 16:49:40 +00:00
.envrc allow loading env vars from .env if it exists 2024-05-14 20:08:37 -07:00
.gitignore allow loading env vars from .env if it exists 2024-05-14 20:08:37 -07:00
.gitlab-ci.yml build and cache all packages and CI dependencies 2024-05-14 20:08:37 -07:00
Cargo.lock prevent xss via user-uploaded media 2024-05-19 21:05:02 -07:00
Cargo.toml prevent xss via user-uploaded media 2024-05-19 21:05:02 -07:00
clippy.toml enable doc_markdown lint 2024-05-14 16:34:10 -07:00
default.nix feat: support non-flake users 2024-02-01 19:19:56 -08:00
engage.toml run clippy for no, default, and all features 2024-04-30 21:54:56 -07:00
flake.lock update rocksdb 2024-05-16 21:50:31 -07:00
flake.nix update rocksdb 2024-05-16 21:50:31 -07:00
LICENSE.md convert license to markdown 2024-04-30 21:54:56 -07:00
rust-toolchain.toml update rust toolchain 2024-01-25 21:44:40 -08:00
rustfmt.toml enable error_on_line_overflow and fix errors 2024-05-16 19:11:40 -07:00