Comments (6)
I believe @Ralith is working on this. My understanding is that it is currently blocked on dtolnay/syn#661.
from tracing.
I believe @Ralith is working on this. My understanding is that it is currently blocked on dtolnay/syn#661.
This is accurate. If that issue can be fixed, I am otherwise very close to a working prototype of event!()
.
I think the new macros could live in the existingtracing-proc-macros or tracing-macros crates. Perhaps we should use tracing-macros and move everything currently in tracing-proc-macros there (and rewrite or remove the macros currently in tracing-macros, which are very experimental).
These macros will necessarily rely on proc-macro-hack, which means that they can't be used by downstream code directly from the crate they're implemented in; an intermediate re-exporting crate is always necessary. My understanding is that tokio(-proc)-macros
are intended to be user-facing, so we'll still need an internal -impl
crate.
from tracing.
Looks like it might not be a syn issue: dtolnay/proc-macro-hack#34
from tracing.
Now isolated to a compiler issue: rust-lang/rust#62325
from tracing.
Thanks for keeping us updated, @Ralith --- great to hear that progress is being made on unblocking this!
from tracing.
Looks like the compiler bug has been fixed in rust-lang/rust#62393, so hopefully we can move forwards with this once the fix is on stable.
from tracing.
Related Issues (20)
- `parent: None` is not respected by `json()` format
- make local time not need unsound feature HOT 1
- macros.rs ::core conflicts HOT 2
- Unexpected side-effect in Dispatch::new HOT 1
- tracing-appender: Build error with rust-nightly: type annotations needed for Box<_> HOT 2
- All log/tracing-log outputs have 4 spaces on the end HOT 1
- `Name / parent` form of `event!()` macro doesn't compile
- Integration With Anyhow HOT 1
- Conditional logs HOT 2
- Add `once` and per-level tracing macros that are called only once
- Cannot write custom `Layer` that uses `Format` HOT 2
- Attribute for logging every line in the function HOT 2
- Leveled logging is ignoring RUST_LOG HOT 4
- `SubscriberBuilder::with_ansi` is incorrectly gated by the `ansi` feature in tracing-subscriber 0.3.18 HOT 1
- A Spans `on_close` method is called with 45 minutes delay HOT 3
- tracing-appender: log rotation doesn't work with musl target HOT 3
- Allow macro `instrument` to accept multiple `fields` and `skip` and merge them
- Broken link on docs.rs HOT 3
- non_blocking writer do not work HOT 4
- Make method env_var_name public HOT 1
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 tracing.