Compatibility with tokio-tracing
Opened this issue · 0 comments
andylokandy commented
tracing
is a widely used tracing library in the Rust community. Many fastrace
users have requested compatibility with existing code and libraries that use tokio-tracing
(#13). This issue aims to address these needs.
Compatibility Goals:
- Mixed Usage: Support applications using
fastrace
alongside libraries that usetokio-tracing
. - Seamless Migration: Enable applications using
tokio-tracing
to migrate tofastrace
with minimal changes. - Library Support: Allow library authors to support both
fastrace
andtokio-tracing
without duplicating code.
Required Features:
- Span and Log Collection: Allow
fastrace
to collect spans and logs fromtokio-tracing
. - API Compatibility Layer: Implement a compatibility layer in
fastrace
to mimic the API and macros oftokio-tracing
. - Span Reporting: Enable
fastrace
to report spans totokio-tracing
.