Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mgr能否支持自己传入context,用以做统一的超时控制和链路追踪 #219

Open
yangfengstu opened this issue Sep 7, 2022 · 2 comments

Comments

@yangfengstu
Copy link

如题。现在都是使用一个新的context,不是很方便

@xxjwxc
Copy link
Owner

xxjwxc commented Sep 7, 2022

可以,创建一个mgr对象,然后使用SetCtx()函数

@yangfengstu
Copy link
Author

其实这样每次创建mge对象的时候都需要显示调用一下,感觉有一些啰嗦。一般来说 ormDB统一设置了ctx 可否直接利用呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants