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:
parent
a2d56cedaf
commit
a6b4134468
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue