You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2022/08/01 04:47:33 UTC
[GitHub] [skywalking] jmjoy commented on issue #9384: [Feature] About log collecting and meter(Metrics) reports skywalking-rust.
jmjoy commented on issue #9384:
URL: https://github.com/apache/skywalking/issues/9384#issuecomment-1200700576
For logging, I want to implement it by integrate with the tokio log framework [tracing](https://crates.io/crates/tracing), add the grpc subscriber and some filed in log, such as:
```rust
// The GrpcSubscriber implement `tracing::Subscriber`.
let subscriber = skywalking::logging::GrpcSubscriber::new();
tracing::subscriber::set_global_default(subscriber);
let trace_context = create_the_trace_context();
info!("some log", skywalking.ctx = trace_context);
```
Because tracing is not only a log framework, but also a trace framework, so in the future, I want to integrate skywalking Tracer with [tracing](https://crates.io/crates/tracing), like [tracing-opentelemetry](https://crates.io/crates/tracing-opentelemetry).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org