feat(users/Profpatsch/whatcd-resolver): add query args to log

Change-Id: I162a438bc9d072adf952295c93839b3050bfff40
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11669
Tested-by: BuildkiteCI
Reviewed-by: Profpatsch <mail@profpatsch.de>
Autosubmit: Profpatsch <mail@profpatsch.de>
This commit is contained in:
Profpatsch 2024-05-14 14:42:38 +02:00 committed by clbot
parent f13c5dddb5
commit 7197d28098

View file

@ -338,7 +338,8 @@ runHandlers defaultHandler handlers req respond = withRunInIO $ \runInIO -> do
( Otel.defaultSpanArguments
{ Otel.attributes =
HashMap.fromList
[ ("server.path", Otel.toAttribute @Text path)
[ ("_.server.path", Otel.toAttribute @Text path),
("_.server.query_args", Otel.toAttribute @Text (req.rawQueryString & bytesToTextUtf8Lenient))
]
}
)