minor tweak to make usernames show up correctly.
This commit is contained in:
@@ -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))))))))))
|
||||
|
||||
@@ -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)))))
|
||||
|
||||
Reference in New Issue
Block a user