grpc/

directory
v0.0.0-...-c107da6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: Apache-2.0

README

1.Run jaeger with docker

jaeger-getting-started

use all-in-one image

2.Start zookeeper

3.Run go server

Set Jaeger ENV variable

CONF_PROVIDER_FILE_PATH=xxxxxxxxxxxxx
JAEGER_AGENT_PORT=32769
JAEGER_AGENT_HOST=localhost
JAEGER_SERVICE_NAME=GrpcServer
JAEGER_SAMPLER_PARAM=1

Detail: jaeger-environment-variables

PS:

  • JAEGER_SAMPLER_PARAM must set 1 , it means 100% requests will be used for sample. Set 0.9 means 90% requests.
  • JAEGER_AGENT_PORT=32769. 32769 is docker published port, it map to 6831, golang client will use 6831 for send tracing data.

Then run go server.

4.Run go client

Set Jaeger ENV variable

CONF_CONSUMER_FILE_PATH=xxxxxxxxxxxxx
JAEGER_AGENT_PORT=32769
JAEGER_AGENT_HOST=localhost
JAEGER_SERVICE_NAME=GrpcClient
JAEGER_SAMPLER_PARAM=1

Detail: jaeger-environment-variables.

Then start go client following README.

5.Check tracing data on Jeager-UI

Open http://localhost:32768/search

Directories

Path Synopsis
go-client
app
go-server
app

Jump to

Keyboard shortcuts

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