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:
parent
f13c5dddb5
commit
7197d28098
1 changed files with 2 additions and 1 deletions
|
@ -338,7 +338,8 @@ runHandlers defaultHandler handlers req respond = withRunInIO $ \runInIO -> do
|
||||||
( Otel.defaultSpanArguments
|
( Otel.defaultSpanArguments
|
||||||
{ Otel.attributes =
|
{ Otel.attributes =
|
||||||
HashMap.fromList
|
HashMap.fromList
|
||||||
[ ("server.path", Otel.toAttribute @Text path)
|
[ ("_.server.path", Otel.toAttribute @Text path),
|
||||||
|
("_.server.query_args", Otel.toAttribute @Text (req.rawQueryString & bytesToTextUtf8Lenient))
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue