libdd-shared-runtime 1.0.0

Shared tokio runtime with fork-safe worker management for Datadog libraries
Documentation

A shared tokio runtime for running background workers across multiple components.

This crate provides [SharedRuntime], which owns a single tokio runtime and manages [PausableWorker]s on it. Components such as the trace exporter can share one runtime instead of each creating their own, reducing thread and resource overhead.

[SharedRuntime] also provides fork-safety hooks (before_fork, after_fork_parent, after_fork_child) that pause and restart workers around fork() calls, preventing deadlocks in child processes.