From 53836fbc13ca274f8314548db936bf0aebee0348 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Mon, 28 Apr 2025 17:12:51 +0200 Subject: [PATCH] Record the axum route in the Sentry context --- Cargo.lock | 1 + Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 9525fb480..1078bbbda 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5554,6 +5554,7 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4b98005537e38ee3bc10e7d36e7febe9b8e573d03f2ddd85fcdf05d21f9abd6d" dependencies = [ + "axum", "http", "pin-project", "sentry-core", diff --git a/Cargo.toml b/Cargo.toml index e5a306e0b..ec6024deb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -332,7 +332,7 @@ features = ["backtrace", "contexts", "panic", "tower", "reqwest"] # Sentry tower layer [workspace.dependencies.sentry-tower] version = "0.37.0" -features = ["http"] +features = ["http", "axum-matched-path"] # Sentry tracing integration [workspace.dependencies.sentry-tracing]