jaeger

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: Apache-2.0, MIT Imports: 10 Imported by: 0

README

tRPC Opentracing Jaeger Plugin

Go Reference Go Report Card LICENSE Releases Tests Coverage

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

http://localhost:16686/

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

Documentation

Overview

Package jaeger is the trpc-opentracing-jaeger plugin.

Package jaeger trpc-opentracing-jaeger plugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientFilter

func ClientFilter(tracer opentracing.Tracer) filter.ClientFilter

ClientFilter is a distributed trace filter for client-side RPC.

func ServerFilter

func ServerFilter(tracer opentracing.Tracer) filter.ServerFilter

ServerFilter is a distributed trace filter for server-side RPC.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL