fix(users/Profpatsch/whatcd-resolver): only prepend log path
Otherwise we break routing. Change-Id: I7555a75fcd589a003c81d86e8e8242fcd0da3594 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11647 Tested-by: BuildkiteCI Autosubmit: Profpatsch <mail@profpatsch.de> Reviewed-by: Profpatsch <mail@profpatsch.de>
This commit is contained in:
parent
8a6f12bdb9
commit
bad074465a
1 changed files with 2 additions and 2 deletions
|
@ -312,13 +312,13 @@ runHandlers ::
|
|||
(Wai.Response -> IO ResponseReceived) ->
|
||||
m ResponseReceived
|
||||
runHandlers defaultHandler handlers req respond = withRunInIO $ \runInIO -> do
|
||||
let path = [fmt|/{req & Wai.pathInfo & Text.intercalate "/"}|]
|
||||
let path = req & Wai.pathInfo & Text.intercalate "/"
|
||||
let handlerResponses =
|
||||
( HandlerResponses
|
||||
{ plain = (\m -> liftIO $ runInIO m >>= respond),
|
||||
html = \act ->
|
||||
Otel.inSpan'
|
||||
[fmt|Route {path}|]
|
||||
[fmt|Route /{path}|]
|
||||
( Otel.defaultSpanArguments
|
||||
{ Otel.attributes =
|
||||
HashMap.fromList
|
||||
|
|
Loading…
Reference in a new issue