Re-enabling distributed tracing through logging framework
This commit is contained in:
@@ -835,6 +835,10 @@
|
|||||||
([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}
|
||||||
|
(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
|
||||||
@@ -862,4 +866,4 @@
|
|||||||
(alog/error ::query-error
|
(alog/error ::query-error
|
||||||
:exception e)
|
:exception e)
|
||||||
|
|
||||||
(throw e)))))))))
|
(throw e)))))))))))
|
||||||
|
|||||||
Reference in New Issue
Block a user