mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 17:08:30 +01:00
feat: record newrelic event for http status code (#2259)
This commit is contained in:
parent
7c0db6067b
commit
1554bea064
1 changed files with 4 additions and 1 deletions
|
@ -7,6 +7,7 @@ import arrow
|
||||||
import click
|
import click
|
||||||
import flask_limiter
|
import flask_limiter
|
||||||
import flask_profiler
|
import flask_profiler
|
||||||
|
import newrelic.agent
|
||||||
import sentry_sdk
|
import sentry_sdk
|
||||||
from coinbase_commerce.error import WebhookInvalidPayload, SignatureVerificationError
|
from coinbase_commerce.error import WebhookInvalidPayload, SignatureVerificationError
|
||||||
from coinbase_commerce.webhook import Webhook
|
from coinbase_commerce.webhook import Webhook
|
||||||
|
@ -301,7 +302,9 @@ def set_index_page(app):
|
||||||
res.status_code,
|
res.status_code,
|
||||||
time.time() - start_time,
|
time.time() - start_time,
|
||||||
)
|
)
|
||||||
|
newrelic.agent.record_custom_event(
|
||||||
|
"HttpResponseStatus", {"code": res.status_code}
|
||||||
|
)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue