Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add test helper for tracestorage subscriber #351

Closed
mattsse opened this issue Dec 30, 2024 · 1 comment
Closed

[Feature] Add test helper for tracestorage subscriber #351

mattsse opened this issue Dec 30, 2024 · 1 comment

Comments

@mattsse
Copy link
Member

mattsse commented Dec 30, 2024

Component

other

Describe the feature you would like

let trace_store: TraceStorage = Default::default();
let layer = CollectingLayer::new(trace_store.clone());
tracing_subscriber::Registry::default().with(layer).init();

this doesn't work in regular cargo test because this uses the global tracing dispatcher and will panic if already configured

Additional context

No response

@emhane
Copy link
Collaborator

emhane commented Jan 8, 2025

closing in favour of op-rs/maili#22

@emhane emhane closed this as completed Jan 8, 2025
@github-project-automation github-project-automation bot moved this from Backlog to In Review in Project Tracking Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants