OpenTracing

This commit is contained in:
Neil Alexander 2022-05-11 15:38:18 +01:00
parent 9c4c5c78ed
commit 08d7169e73
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 7 additions and 11 deletions

View file

@ -1,3 +0,0 @@
footer.site-footer {
opacity: 10%;
}

View file

@ -1,12 +1,11 @@
---
title: Opentracing
title: OpenTracing
has_children: true
parent: Development
permalink: /development/opentracing
---
Opentracing
===========
# OpenTracing
Dendrite extensively uses the [opentracing.io](http://opentracing.io) framework
to trace work across the different logical components.

View file

@ -1,17 +1,17 @@
---
title: Setup
parent: Opentracing
parent: OpenTracing
grand_parent: Development
permalink: /development/opentracing/setup
---
## OpenTracing Setup
# OpenTracing Setup
Dendrite uses [Jaeger](https://www.jaegertracing.io/) for tracing between microservices.
Tracing shows the nesting of logical spans which provides visibility on how the microservices interact.
This document explains how to set up Jaeger locally on a single machine.
### Set up the Jaeger backend
## Set up the Jaeger backend
The [easiest way](https://www.jaegertracing.io/docs/1.18/getting-started/) is to use the all-in-one Docker image:
@ -29,7 +29,7 @@ $ docker run -d --name jaeger \
jaegertracing/all-in-one:1.18
```
### Configuring Dendrite to talk to Jaeger
## Configuring Dendrite to talk to Jaeger
Modify your config to look like: (this will send every single span to Jaeger which will be slow on large instances, but for local testing it's fine)
@ -52,6 +52,6 @@ then run the monolith server with `--api true` to use polylith components which
./dendrite-monolith-server --tls-cert server.crt --tls-key server.key --config dendrite.yaml --api true
```
### Checking traces
## Checking traces
Visit <http://localhost:16686> to see traces under `DendriteMonolith`.