refactor(users/Profpatsch/MonadPostgres): rephrase maybe match

wtf was I thinking

Change-Id: Ia621032d90d7a9363dfe2bfbed122c67c90468f7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11651
Reviewed-by: Profpatsch <mail@profpatsch.de>
Autosubmit: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
This commit is contained in:
Profpatsch 2024-05-11 23:08:26 +02:00 committed by clbot
parent a2d56cedaf
commit a6b4134468

View file

@ -718,10 +718,9 @@ traceQueryIfEnabled tools span logDatabaseQueries qry params = do
$ HashMap.fromList
$ ( ("_.postgres.query", Otel.toAttribute @Text errs.query)
: ( errs.explain
& foldMap
( \ex ->
[("_.postgres.explain", Otel.toAttribute @Text ex)]
)
& \case
Nothing -> []
Just ex -> [("_.postgres.explain", Otel.toAttribute @Text ex)]
)
)
let doExplain = do