apache / apache/apisix-go-plugin-runner
请求帮助:我需要将response与对应的request关联起来
- Dominant language
- Go
- Stars
- 198
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
### Issue description
我使用ext-plugin-post-req和ext-plugin-post-resp两个插件配合实现一些功能。
在ext-plugin-post-req阶段会缓存一些信息,需要在ext-plugin-post-resp的时候知道对应哪个request。
我已经尝试过使用request-id插件,但是在response阶段,ext-plugin-post-resp运行在request-id之前,所以无法从header中获取到request-id产生的id。
有什么方法可以在go-runner里,将response和request关联么?
### Environment
* APISIX Go Plugin Runner's version:
* APISIX version:
* Go version:
* OS (cmd: `uname -a`):
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the ext-plugin-post-req and ext-plugin-post-resp stages and the request-id plugin's execution order in the Go Plugin Runner. Determine whether the runner exposes a supported request-to-response association, and document the required approach or the scope of a new design.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100