minor tweak to make usernames show up correctly.
This commit is contained in:
@@ -835,10 +835,7 @@
|
|||||||
([id q v]
|
([id q v]
|
||||||
(statsd/increment "query.graphql.count" {:tags #{(str "query:" (query-name q))}})
|
(statsd/increment "query.graphql.count" {:tags #{(str "query:" (query-name q))}})
|
||||||
(statsd/time! [(str "query.graphql.time" ) {: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/with-context {:query-string q :user id}
|
||||||
(mu/trace
|
|
||||||
::user-query
|
|
||||||
[]
|
|
||||||
(lc/with-context {:query q}
|
(lc/with-context {:query q}
|
||||||
(log/info "executing query name" (query-name q))
|
(log/info "executing query name" (query-name q))
|
||||||
(try
|
(try
|
||||||
@@ -866,4 +863,4 @@
|
|||||||
(alog/error ::query-error
|
(alog/error ::query-error
|
||||||
:exception e)
|
:exception e)
|
||||||
|
|
||||||
(throw e)))))))))))
|
(throw e))))))))))
|
||||||
|
|||||||
@@ -147,7 +147,8 @@
|
|||||||
(fn trace [a b c]
|
(fn trace [a b c]
|
||||||
(mu/with-context {:query key
|
(mu/with-context {:query key
|
||||||
:mutation (boolean (= "mutation"
|
:mutation (boolean (= "mutation"
|
||||||
(namespace key)))}
|
(namespace key)))
|
||||||
|
:user (:id a)}
|
||||||
(mu/trace (keyword "graphql" (name key))
|
(mu/trace (keyword "graphql" (name key))
|
||||||
[]
|
[]
|
||||||
(f a b c)))))
|
(f a b c)))))
|
||||||
|
|||||||
Reference in New Issue
Block a user