Comments (4)
Since using the console already requires enabling tokio_unstable
, we can probably just use task::Builder
to add a name, anywhere we spawn a task.
In the future, it would be nice to be able to associate tasks with runtimes, and name runtimes as well. That way, we could say things like "hide all tasks belonging to the console runtime". But that would require new instrumentation in Tokio, so it's a bigger project.
from console.
#117 added names to the console's aggregate
and serve
tasks. However, we can't easily name the per-connection tasks spawned by Tonic without switching to tonic's lower-level API and writing our own accept loop to spawn those tasks on our own. We'll do that in a subsequent branch (or consider changes upstream?)
from console.
Could the many tonic / hyper tasks be filtered out using spans and layers?
I don't know enough about tracing to know if logic like metadata.is_within_span is implementable.
Edit: something like a dynamic_filter_fn?
When debugging a hyper-based application tonic adds a lot of noise, ways to hide or at least distinguish would be welcome.
from console.
@g2p it's definitely possible to use dynamic_filter_fn
to filter out those spans at the subscriber-level, but I think the best long-term solution is to add filtering to the console UI: #131
from console.
Related Issues (20)
- `--ascii-only` seems to be interpreted the wrong way around HOT 1
- When connecting to url without `http://` weird things are happening
- Too Many IDs
- make long Locations readable
- Spans unexpectedly remain open within spawned tasks HOT 2
- Self wakes are not detected
- Enable adding the gRPC API to tonic without serving HOT 2
- console_subscriber: "poll's start timestamp was before the wake time/last poll timestamp" HOT 2
- consider publishing using `cargo-dist`
- Add key to jump from an async op to the related task HOT 1
- `console-subscriber` crate has low test coverage
- Record `ExpectedTask` creation location in console-subscriber tests
- Don't send task names as strings HOT 3
- Flaky `console-subscriber` integration tests HOT 2
- Sorting does not work on all columns in the resources view HOT 2
- `tokio-console` won't quit when the main program has exit HOT 1
- Improve attributes sorting in the resources tab
- subscriber: add grpc-web support to console-subscriber HOT 4
- a global default trace dispatcher has already been set HOT 8
- RUSTSEC-2021-0145: Potential unaligned read
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from console.