first commit

This commit is contained in:
hal8174 2025-02-13 22:37:39 +01:00
commit e7f75310ab
7 changed files with 709 additions and 0 deletions

33
src/lib.rs Normal file
View file

@ -0,0 +1,33 @@
use tracing::{span, Subscriber};
struct PerfettoSubscriber {}
impl Subscriber for PerfettoSubscriber {
fn enabled(&self, metadata: &tracing::Metadata<'_>) -> bool {
true
}
fn new_span(&self, span: &span::Attributes<'_>) -> span::Id {
todo!()
}
fn record(&self, span: &span::Id, values: &span::Record<'_>) {
todo!()
}
fn record_follows_from(&self, span: &span::Id, follows: &span::Id) {
todo!()
}
fn event(&self, event: &tracing::Event<'_>) {
todo!()
}
fn enter(&self, span: &span::Id) {
todo!()
}
fn exit(&self, span: &span::Id) {
todo!()
}
}