Re-enabling distributed tracing through logging framework

This commit is contained in:
Bryce Covert
2023-01-08 07:15:10 -08:00
parent 98ebae08c6
commit ff48e1fab4

View File

@@ -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)))))))))))