tRPC Opentracing Jaeger Plugin
July 14, 2025 · View on GitHub
Jaeger Local Installation
1. Download Jaeger according to your OS
https://www.jaegertracing.io/download/
2. Deploy Jaeger
Easy local deployment using jaeger-all-in-one, just start it.
~/Downloads/jaeger-1.13.0-darwin-amd64: ls
example-hotrod* jaeger-agent* jaeger-all-in-one* jaeger-collector* jaeger-ingester* jaeger-query*
~/Downloads/jaeger-1.13.0-darwin-amd64: ./jaeger-all-in-one&
3. Business services use Jaeger
trpc_go.yaml add the following configuration:
#Configure the server side to use jaeger filters
server:
filter:
- jaeger
#Configure initialized jaeger plugin configuration items
plugins:
tracing:
jaeger:
serviceName: trpc-ecosystem
disabled: false
sampler:
type: const
param: 1
reporter:
localAgentHostPort: localhost:6831
4. Client calls to business services trigger jaeger reporting
5. Check out jaeger distributed tracking data in local
Appendix: Jaeger Docker Installation
$ docker run -d --name jaeger \
-e COLLECTOR_ZIPKIN_HTTP_PORT=9411 \
-p 5775:5775/udp \
-p 6831:6831/udp \
-p 6832:6832/udp \
-p 5778:5778 \
-p 16686:16686 \
-p 14268:14268 \
-p 9411:9411 \
jaegertracing/all-in-one:1.14
Copyright
The copyright notice pertaining to the Tencent code in this repo was previously in the name of “THL A29 Limited.” That entity has now been de-registered. You should treat all previously distributed copies of the code as if the copyright notice was in the name of “Tencent.”