stagemonitor / stagemonitor-mailinglist

GitHub issues abused as a mailing list
3 stars 0 forks source link

Monitoring Spring/Caching/Redis #51

Open marcust opened 6 years ago

marcust commented 6 years ago

Hey people, I have an issue and I'm not totally sure how to approach that right now, so I guess I will ask for opinions.

So I'm hunting something in a request trace that I can't see and due to the nature of things I suspect the Spring caching that is using Redis as a backend. Actually, thinking about that, why don't I see the aspects in the request traces?

Anyway, so I'm currently wondering what would be the best way to approach that is there a recommended Spring way to integrate with the request traces (I was staring at the JDBC Plugin, but I guess given that I have Spring I can do that somehow easier). What would you recommend?

Also, I think that I don't only want to monitor the RedisTemplate but also the underlying JedisPool and was wondering if I'm the only one who has this use-case or if somebody already has done something like that before?

Cheers, Marcus

felixbarny commented 6 years ago

Hi,

I don't have experience with Redis/Jedis. But you could probably either wrap the JedisPool or add instrumentation via a StagemonitorByteBuddyTransformer.

Either way, you'll have to create appropriate OpenTracing Spans. Maybe you can find some inspiration in one of the OpenTracing contribution repositories