about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2024-05-09T11·06+0200
committerclbot <clbot@tvl.fyi>2024-05-13T14·38+0000
commit58156967b85d8b6c4920f98e43c12d5f55490619 (patch)
tree99c20d5f4ad9de6876799df4257ae3e0a0f329ad /users
parent5d57ca2dc765c4f773c5fc0c23645f01335a5cb1 (diff)
fix(users/Profpatsch/whatcd-resolver): prepend / for route logging r/8119
Change-Id: I46e77540cb47ae42dc44ec950a3ad97cb408974c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11638
Autosubmit: Profpatsch <mail@profpatsch.de>
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'users')
-rw-r--r--users/Profpatsch/whatcd-resolver/src/WhatcdResolver.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/Profpatsch/whatcd-resolver/src/WhatcdResolver.hs b/users/Profpatsch/whatcd-resolver/src/WhatcdResolver.hs
index f1902bac8c3d..ee1879b412de 100644
--- a/users/Profpatsch/whatcd-resolver/src/WhatcdResolver.hs
+++ b/users/Profpatsch/whatcd-resolver/src/WhatcdResolver.hs
@@ -319,7 +319,7 @@ runHandlers debug defaultHandler handlers req respond = withRunInIO $ \runInIO -
           else Html.renderHtml
   let hh route act =
         Otel.inSpan'
-          [fmt|Route {route }|]
+          [fmt|Route {route}|]
           ( Otel.defaultSpanArguments
               { Otel.attributes =
                   HashMap.fromList
@@ -333,7 +333,7 @@ runHandlers debug defaultHandler handlers req respond = withRunInIO $ \runInIO -
           )
   let h route act = hh route (\span -> act span <&> (\html -> T2 (label @"html" html) (label @"extraHeaders" [])))
 
-  let path = (req & Wai.pathInfo & Text.intercalate "/")
+  let path = [fmt|/{req & Wai.pathInfo & Text.intercalate "/"}|]
   let handlerResponses =
         ( T2
             (label @"h" (h path))