Robyn icon indicating copy to clipboard operation
Robyn copied to clipboard

Feat before request

Open tengfeisky opened this issue 9 months ago • 2 comments

Description

This PR adds request parameter to after_request middleware

Summary

This PR adds the request parameter to the after_request middleware function to enable proper propagation of trace_id between request and response headers. This change supports distributed tracing functionality by ensuring that the trace_id remains consistent throughout the request lifecycle and can be properly passed to downstream services.

PR Checklist

Please ensure that:

  • [x] The PR contains a descriptive title
  • [x] The PR contains a descriptive summary of the changes
  • [x] You build and test your changes before submitting a PR.
  • [x] You have added relevant documentation
  • [ ] You have added relevant tests. We prefer integration tests wherever possible

Pre-Commit Instructions:

tengfeisky avatar Feb 19 '25 10:02 tengfeisky

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
robyn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 10:21am

vercel[bot] avatar Feb 19 '25 10:02 vercel[bot]

😱 Found 1 issue. Time to roll up your sleeves! 😱

recurseml[bot] avatar May 27 '25 19:05 recurseml[bot]