Skip to content

Latest commit

 

History

History

netty4-grpc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Tracing Example: Netty 4.1/Google gRPC 1.63/JRE 21

Instead of servlet, the frontend is a Netty HTTP handler. The backend is Google gRPC 1.31. Both services run as a normal Java application.

Here's an example screenshot: screen shot

This example also shows Brave's BaggagePropagation. If you make a request to the frontend with the HTTP header user_name, it will transparently propagate and be readable even in gRPC.

Ex. The backend adds the user to the response, only if it can see a header that was sent to the frontend. This shows transparent propagation across different frameworks.

$ curl -s localhost:8081 -H"user_name: joey"
Sat Dec 19 16:11:01 MYT 2020 joey