minor tweak to make usernames show up correctly.

This commit is contained in:
2023-01-08 10:25:05 -08:00
parent 06f59ae531
commit 1b3eff8301
2 changed files with 28 additions and 30 deletions

View File

@@ -835,10 +835,7 @@
([id q v]
(statsd/increment "query.graphql.count" {:tags #{(str "query:" (query-name q))}})
(statsd/time! [(str "query.graphql.time" ) {:tags #{(str "query:" (query-name q))}}]
(mu/with-context {:query q :user id}
(mu/trace
::user-query
[]
(mu/with-context {:query-string q :user id}
(lc/with-context {:query q}
(log/info "executing query name" (query-name q))
(try
@@ -866,4 +863,4 @@
(alog/error ::query-error
:exception e)
(throw e)))))))))))
(throw e))))))))))

View File

@@ -147,7 +147,8 @@
(fn trace [a b c]
(mu/with-context {:query key
:mutation (boolean (= "mutation"
(namespace key)))}
(namespace key)))
:user (:id a)}
(mu/trace (keyword "graphql" (name key))
[]
(f a b c)))))