File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -835,6 +835,10 @@ pub async fn stats_middleware<RM: RouteMapper>(
835
835
Some ( span_ctx) if * PROPAGATE_UPSTREAM_TRACES => Span :: root ( route. to_owned ( ) , span_ctx) ,
836
836
_ => Span :: noop ( ) ,
837
837
} ;
838
+
839
+ // Add the request_id to sentry
840
+ sentry:: configure_scope ( |scope| scope. set_tag ( "request_id" , & request_id) ) ;
841
+
838
842
let resp = next. run ( req) . in_span ( root) . await ;
839
843
840
844
let client_version_s = client_version. to_string ( ) ;
@@ -859,9 +863,6 @@ pub async fn stats_middleware<RM: RouteMapper>(
859
863
let route = route_metric_mapper. map_route ( route) ;
860
864
let is_test = resolved_host. instance_name . starts_with ( "test-" ) ;
861
865
862
- // Add the request_id to sentry
863
- sentry:: configure_scope ( |scope| scope. set_tag ( "request_id" , request_id. clone ( ) ) ) ;
864
-
865
866
log_http_request (
866
867
& client_version_s,
867
868
& route,
You can’t perform that action at this time.
0 commit comments