-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Thanks for creating this repo, it is quite helpful!
Continuing the discussion from rwf2/Rocket#982 :
Questions
- Why the need to pass Option::None to
.local_cache()in the response methods? As I understood, you can pass a new value and if there is, e.g., a request_id already that is there, it won't be created. Or I got this wrong? - Can you use the
#[instrument]macro with this instead of the explicitenteranddrop? (maybe I am wrong but I thought that the span is dropped automatically when the scope ends) - Where is the documentation regarding the kind of things you do in
filter_layer()? (Rocket options likerocket::support=infoorhyper=off), I didn't know you can do that.
Suggestions
- It might be helpful to add a screenshot(s) of a "demo" of how the logs look like etc.
- What if I want to add a name to the span to identify it's function? In your examples it's always "request". Can
TracingSpaninclude anamefield in it? - Isn't it better to make a
neworgeneratemethod forRequestIdinstead of calling itdefault? Seems more intuitive to me. - What if I want a
debuglog level but nottrace? As I understand, yourdebuglevel includes both.
I had more questions, once I remember them I'll post it here.
Thank you very much!
Metadata
Metadata
Assignees
Labels
No labels