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

Add SpanSend trait to allow custom channels, and optional support of tokio's channel. #9

Closed
wants to merge 3 commits into from

Conversation

sile
Copy link
Owner

@sile sile commented Mar 29, 2020

This PR introduces SpanSend trait that allows users specifying custom channels other than the default crossbeam one.
Tokio's channel support is also added as an optional feature. You can create a tracer that uses tokio's channel as follows:

use rustracing::sampler::AllSampler;
use rustracing::Tracer;

let (span_tx, span_rx) = tokio::sync::mpsc::channel(10);
let tracer = Tracer::with_sender(AllSampler, span_tx);

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

Successfully merging this pull request may close these issues.

None yet

1 participant