Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robertohuertasm/shuttle-datadog-logs
🦀📓 Send your logs to Datadog from a Shuttle + Axum REST API
https://github.com/robertohuertasm/shuttle-datadog-logs
axum datadog logs rust server shuttle
Last synced: 9 days ago
JSON representation
🦀📓 Send your logs to Datadog from a Shuttle + Axum REST API
- Host: GitHub
- URL: https://github.com/robertohuertasm/shuttle-datadog-logs
- Owner: robertohuertasm
- Created: 2023-02-01T01:47:27.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-30T10:46:08.000Z (about 1 year ago)
- Last Synced: 2024-10-15T16:20:49.269Z (24 days ago)
- Topics: axum, datadog, logs, rust, server, shuttle
- Language: Rust
- Homepage: https://robertohuertas.com/2023/02/01/shuttle-datadog-logs
- Size: 43.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shuttle-datadog-logs
[![Rust](https://github.com/robertohuertasm/shuttle-datadog-logs/blob/old-version/static/shuttle-datadog.png?raw=true)](https://robertohuertas.com/2023/09/30/shuttle-datadog-logs)
This project shows how to use a [Shuttle](https://shuttle.rs)-powered [Axum](https://github.com/tokio-rs/axum) REST API that makes use of [Datadog](https://docs.datadoghq.com/logs/log_collection/) to manage logs.
We will be using the [dd-tracing-layer](https://crates.io/crates/dd-tracing-layer) crate to send the logs to [Datadog](https://docs.datadoghq.com).
## Blog Post
This project is a companion to the blog post: [Send the logs of your Shuttle-powered backend to Datadog](https://robertohuertas.com/2023/09/30/shuttle-datadog-logs) blog post.
Also available in [dev.to](https://dev.to/robertohuertasm/send-the-logs-of-your-shuttle-powered-backend-to-datadog-156d) and [Medium](https://robertohuertasm.medium.com/send-the-logs-of-your-shuttle-powered-backend-to-datadog-9508dab9dc71).
## Endpoints
It exposes one endpoint:
- `GET /` - Returns a `200` status code with a `Hello, World!` message.
## Live demo
The project has been deployed with [Shuttle](https://shuttle.rs). You can try it out by visiting the following URL: [https://shuttle-datadog-logs.shuttleapp.rs](https://shuttle-datadog-logs.shuttleapp.rs/).