Replies: 1 comment 3 replies
-
|
参考:https://github.com/midwayjs/midway/blob/main/packages/tenant/src/tenantManager.ts |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The feature, motivation(功能、动机)
koa 已经支持了在异步操作中存储和获取请求级别的 context
通过这个操作, 可以在 midway 作用域之外 (比如某些 pureFunction 中) 获取到当前流入的请求上下文, 这对于一些需要追踪链路又不想全部引入 opentelementry 的时候非常有用
但 midwayjs/koa 中还无法传入开启这个选项, https://github.com/midwayjs/midway/blob/main/packages/web-koa/src/framework.ts#L76, 希望支持
Alternatives(替代方案)
No response
Additional context(其他上下文)
No response
Beta Was this translation helpful? Give feedback.
All reactions