{"id":58910,"library":"tracing-actix-web","title":"tracing-actix-web","description":"Structured logging middleware for actix-web.","status":"active","version":"0.7.21","language":"rust","source_language":null,"source_url":"https://github.com/actix/actix-extras","tags":["actix-web","logging","tracing","middleware"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntracing-actix-web = \"0.7.21\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tracing-actix-web","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"TracingLogger","correct":"use tracing_actix_web::TracingLogger;"}],"quickstart":{"code":"use actix_web::{web, App, HttpServer};\nuse tracing_actix_web::TracingLogger;\n\n#[actix_web::main]\nasync fn main() -> std::io::Result<()> {\n    HttpServer::new(|| {\n        App::new()\n            .wrap(TracingLogger::default())\n            .route(\"/\", web::get().to(|| async { \"Hello\" }))\n    })\n    .bind(\"127.0.0.1:8080\")?\n    .run()\n    .await\n}","lang":"rust","description":"Add structured logging to an actix-web application."},"warnings":[{"fix":"Add actix-web and tracing as dependencies, and initialize a tracing subscriber.","message":"Requires actix-web and tracing crate to be set up.","severity":"gotcha","affected_versions":">=0.7.0"}],"env_vars":null,"search_vec":"'actix':3,10,13 'actix-web':9,12 'log':6,15 'middlewar':7,17 'structur':5 'trace':2,16 'tracing-actix-web':1 'web':4,11,14","created_at":"2026-06-16T16:42:59.463863+00:00","updated_at":"2026-06-16T16:42:59.463863+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://actix.rs","github":"https://github.com/actix/actix-extras","docs":"https://docs.rs/tracing-actix-web/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","observability"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}