dianping / cat

CAT 作为服务端项目基础组件,提供了 Java, C/C++, Node.js, Python, Go 等多语言客户端,已经在美团点评的基础架构中间件框架(MVC框架,RPC框架,数据库框架,缓存框架等,消息队列,配置系统等)深度集成,为美团点评各业务线提供系统丰富的性能指标、健康状况、实时告警等。
Apache License 2.0
18.63k stars 5.42k forks source link

可否通过java动态字节码技术添加cat埋点日志?有没有例子? #2336

Open ChenShuai1981 opened 5 months ago

ChenShuai1981 commented 5 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

qmwu2000 commented 5 months ago

如果应用使用Spring AOP,在AOP中调用CAT SDK埋点应该非常方便。如果针对框架,可以使用ASM等字节码技术动态,插入CAT SDK埋点调用,但是需要注意classloader相关的问题。

On Apr 9, 2024, at 09:09, ChenShuai1981 @.***> wrote:

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

— Reply to this email directly, view it on GitHub https://github.com/dianping/cat/issues/2336, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASQE76W554ZDOTVBQLAUZDY4M5UHAVCNFSM6AAAAABF5U3CPKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZTENBRG44TAMI. You are receiving this because you are subscribed to this thread.