Skip to content

How do I get raw path params in a layer #3213

Answered by mladedav
BLucky-gh asked this question in Q&A
Discussion options

You must be logged in to vote

Right, in that case I think you need to create the layer with from_fn which supports extractors and then I think that you can move the extracted paths to the closure for TraceLayer.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BLucky-gh
Comment options

@mladedav
Comment options

mladedav Feb 5, 2025
Collaborator

Answer selected by BLucky-gh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants