update jaeger documentation
This commit is contained in:
parent
273368ed6a
commit
e6b631078f
@ -12,7 +12,20 @@ Currently it is set up to use Jaeger, though other tracing backends should be fa
|
||||
|
||||
To easily run and view tracing locally, first, install jaeger. The easiest way to do this is to [download the binaries](https://www.jaegertracing.io/download/) and then run the `jaeger-all-in-one` binary. This will start up jaeger, listen for spans on `localhost:6831`, and expose a web UI for viewing traces on `http://localhost:16686/`.
|
||||
|
||||
Now, to start sending traces from Lotus to Jaeger, set the environment variable `LOTUS_JAEGER` to `localhost:6831`, and start the `lotus daemon`.
|
||||
Now, to start sending traces from Lotus to Jaeger, set the environment variable and start the daemon.
|
||||
|
||||
```bash
|
||||
export LOTUS_JAEGER_AGENT_ENDPOINT=127.0.0.1:6831
|
||||
lotus daemon
|
||||
```
|
||||
|
||||
Alternatively, the agent endpoint can also be configured by a pair of environemnt variables to provide the host and port. The following snipit is functionally equivilent to the previous.
|
||||
|
||||
```bash
|
||||
export LOTUS_JAEGER_AGENT_HOST=127.0.0.1
|
||||
export LOTUS_JAEGER_AGENT_PORT=6831
|
||||
lotus daemon
|
||||
```
|
||||
|
||||
Now, to view any generated traces, open up `http://localhost:16686/` in your browser.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user