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

Add Middleware Support For Conveniently Tracing #265

Open
NX-Official opened this issue May 10, 2024 · 1 comment
Open

Add Middleware Support For Conveniently Tracing #265

NX-Official opened this issue May 10, 2024 · 1 comment

Comments

@NX-Official
Copy link

NX-Official commented May 10, 2024

English:

I want to perform link tracking on the Tencent Cloud SDK calls in the project, specifically recording the call time and the Action Name of each call.

Moreover, since it is used in many places, I hope it can be non-intrusive.

So I want to write an instrumentation for the Tencent Cloud SDK, but I encountered some problems.

Specifically, AWS's SDK can add middleware, so link tracking can get the information, but Tencent Cloud does not have this feature.

If I don't inject it, I don't know how to do it. There is more than one way to call Tencent Cloud in the code, and I think it would be difficult to wrap it.

So, I want a feat of middleware or hooks support for conveniently tracing


中文:

我想对项目中的腾讯云SDK调用进行链路追踪,具体来说是记录调用时间,还有每次调用的 Action Name 之类的

而且因为使用到的地方有点多,所有我希望能是非侵入式的

于是我想为腾讯云SDK写一个 instrumentation ,但是我遇到了一些问题

具体来说就是 aws 的 sdk 是可以加中间件的 ,这样链路追踪就可以拿到其中的信息,但是腾讯云是没有的

如果不注入的话,我不知道要怎么搞,代码里调用腾讯云的方式也不止一种,要包一层我感觉也难办

所以我希望能提供中间件或者 hooks 的支持,这样就方便多了

@sesky4
Copy link
Collaborator

sesky4 commented May 17, 2024

感谢建议,看起来是很有意义的功能,有必要支持

不过我还不熟悉 telemetry,让我先熟悉了解下,可能需要一段时间

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