https://github.com/hseeberger/hello-tracing-rs
Simple dockerized Rust/Axum/tonic based tracing demo.
https://github.com/hseeberger/hello-tracing-rs
axum rust tracing
Last synced: 7 months ago
JSON representation
Simple dockerized Rust/Axum/tonic based tracing demo.
- Host: GitHub
- URL: https://github.com/hseeberger/hello-tracing-rs
- Owner: hseeberger
- License: apache-2.0
- Created: 2023-06-21T15:54:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-14T20:03:42.000Z (7 months ago)
- Last Synced: 2025-03-15T04:26:59.175Z (7 months ago)
- Topics: axum, rust, tracing
- Language: Rust
- Homepage:
- Size: 437 KB
- Stars: 41
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hello-tracing-rs
Simple dockerized Rust/Axum/toic based tracing demo.
## Run the gateway
From the workspace root directory:
```
just run-gateway
```## Run the backend
From the workspace root directory:
```
just run-backend
```## Configure Grafana Agent
```
server:
log_level: warnlogs:
configs:
- name: default
clients:
- url: https://:@logs-prod-eu-west-0.grafana.net/loki/api/v1/push
positions:
filename: /tmp/positions.yaml
scrape_configs:
- job_name: hello-tracing-rs
static_configs:
- targets:
- localhost
labels:
__path__: /Users/heiko/tmp/hello-tracing-gateway.log
app: hello-tracing-rs
service: hello-tracing-gateway
- targets:
- localhost
labels:
__path__: /Users/heiko/tmp/hello-tracing-backend.log
app: hello-tracing-rs
service: hello-tracing-backendtraces:
configs:
- name: default
remote_write:
- endpoint: tempo-eu-west-0.grafana.net:443
basic_auth:
username:
password:
receivers:
otlp:
protocols:
grpc:
```
## License ##This code is open source software licensed under the [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0.html).