Skip to content

How to Add JSON-RPC Protocol Support #1566

Closed Answered by marctc
4406arthur asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @4406arthur, thanks a lot for your interest in Beyla and will to contribute. Indeed touching Beyla is not easy and it could be intimidating in the beginning. What you want to do it's not straightforward, but not crazy to implement. I can give you some steps to provide some guidance, but you would need to do some research by your own.

If you want to add generic suport for JSON-RPC, you have to know how the protocol works. In pkg/internal/ebpf/common/tcp_detect_transform.go any TCP packet captured from BPF passes through the ReadTCPRequestIntoSpan function, and depending what's in the bytes, you can identify if the packet is sql, redis, kafka or grpc.

So basically you will need to see i…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@4406arthur
Comment options

Answer selected by grcevski
Comment options

You must be logged in to vote
1 reply
@4406arthur
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants