Backend: Error Monitoring
Backend: Logging
Go
JS
Python
Ruby
Java
Rust
Hosting Providers
Backend: Tracing
Native OpenTelemetry
Fullstack Frameworks
Overview
Self Host & Local Dev
Menu
actix-web Tracing
Learn how to set up highlight.io tracing with the tracing crate.
1
Set up your highlight.io SDK.
First, make sure you've followed the backend getting started guide.
2
Add the tracing crate to your project.
The tracing crate allows you and your dependencies to record traces that will be automatically captured by the highlight.io SDK.
[dependencies]
tracing = "0.1"
3
Record a trace.
Use the tracing crate to create spans and events. You can read more about this on the docs.rs page of the tracing crate.
use tracing::{event, span, Level};
// ...
let span = span!(Level::INFO, "my_span");
let _guard = span.enter();
event!(Level::DEBUG, "something happened inside my_span");
4
Verify your backend traces are being recorded.
Visit the highlight traces portal and check that backend traces are coming in.