Skip to content

Questions & Suggestions #3

@oren0e

Description

@oren0e

Thanks for creating this repo, it is quite helpful!
Continuing the discussion from rwf2/Rocket#982 :

Questions

  1. 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?
  2. Can you use the #[instrument] macro with this instead of the explicit enter and drop? (maybe I am wrong but I thought that the span is dropped automatically when the scope ends)
  3. Where is the documentation regarding the kind of things you do in filter_layer()? (Rocket options like rocket::support=info or hyper=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 TracingSpan include a name field in it?
  • Isn't it better to make a new or generate method for RequestId instead of calling it default? Seems more intuitive to me.
  • What if I want a debug log level but not trace? As I understand, your debug level includes both.

I had more questions, once I remember them I'll post it here.

Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions