actix-treblle 4.0.0

Treblle makes it super easy to understand what's going on with your APIs and the apps that use them.
Documentation

Treblle.com connector for Rust Actix web framework.

use actix_web::{App, HttpServer};
use actix_treblle::Treblle;

#[actix_web::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| {
App::new()
.wrap(Treblle::new("project_id".to_string(), "api_key".to_string()))
.route("/hello", web::get().to(|| async { "Hello World!" }))
})
.bind(("127.0.0.1", 8080))?
.run()
.await
}