You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The could is rough. But I managed to use it to find bugs.
More important, I think the dx in the following code is much better.
// init the tracer with some contextslet tr = ContextedTracer::default().context("xxx").context("xxx");// nestedfor item in items {let tr = tr.clone().context(item.id);
tr.emit_trace("something happen")for key in item.content{
tr.clone().context(key).emit_trace("something about the key")}}
I post this pattern here to see if the community already has the pattern.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Roughly, to do debugging I wrote something like
The could is rough. But I managed to use it to find bugs.
More important, I think the dx in the following code is much better.
I post this pattern here to see if the community already has the pattern.
Beta Was this translation helpful? Give feedback.
All reactions