Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/damienpontifex/rust-axum-opentelemetry-otlp

Quick setup of Axum with opentelemetry and otlp exporter
https://github.com/damienpontifex/rust-axum-opentelemetry-otlp

opentelemetry otlp rust

Last synced: 5 days ago
JSON representation

Quick setup of Axum with opentelemetry and otlp exporter

Awesome Lists containing this project

README

        

# Axum server with Opentelemetry & OTLP

Quickstart
```bash
RUST_LOG=info cargo watch -x 'run --package api'
```

- OTLP exporter
- Spans with some default opentelemetry tags
- Run jaeger OTLP container with
```bash
docker run --rm -d --name jaeger \
-p 16686:16686 \
-p 4317:4317 \
-p 4318:4318 \
jaegertracing/jaeger:2.1.0
```

n.b. not meant to be a reference or replacement for other libraries, but always had difficulties setting these up so a little experiment/reminder for myself

- `dotnet-project/`: A dotnet web api project to test and validate the trace context propagation is working as expected
- Running both together and hitting http://localhost:5000/weatherforecast will then hit the rust endpoints and show both the dotnet and rust api project trace tree within jaeger