Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/damienpontifex/rust-axum-opentelemetry-otlp
- Owner: damienpontifex
- Created: 2025-01-05T01:38:15.000Z (5 days ago)
- Default Branch: main
- Last Pushed: 2025-01-05T01:55:23.000Z (5 days ago)
- Last Synced: 2025-01-05T02:32:22.967Z (5 days ago)
- Topics: opentelemetry, otlp, rust
- Language: Rust
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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