Skip to content

Add Middleware Support For Conveniently Tracing #265

@nickxudotme

Description

@nickxudotme

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 的支持,这样就方便多了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions