allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [allura] 01/03: [#8276] hook up new relic error tracing now that its builtin pylons tracing doesn't apply
Date Fri, 12 Apr 2019 18:32:03 GMT
This is an automated email from the ASF dual-hosted git repository.

kentontaylor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git

commit e6e75b7689e656783a6de1d8ba856fb9661e35c5
Author: Dave Brondsema <dave@brondsema.net>
AuthorDate: Thu Apr 11 18:07:42 2019 -0400

    [#8276] hook up new relic error tracing now that its builtin pylons tracing doesn't apply
---
 Allura/allura/lib/patches.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Allura/allura/lib/patches.py b/Allura/allura/lib/patches.py
index 9e1734a..ab58968 100644
--- a/Allura/allura/lib/patches.py
+++ b/Allura/allura/lib/patches.py
@@ -125,3 +125,6 @@ def newrelic():
         newrelic.agent.set_transaction_name(
             newrelic.agent.callable_name(controller))
         return old_controller_call(self, controller, *args, **kwargs)
+
+    import newrelic.api.error_trace
+    newrelic.api.error_trace.wrap_error_trace('tg.wsgiapp', 'TGApp.__call__')
\ No newline at end of file


Mime
View raw message