Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: updated new relic reporting to datadog #280

Merged
merged 9 commits into from
Jun 28, 2024
2 changes: 1 addition & 1 deletion edx_ace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .recipient import Recipient
from .recipient_resolver import RecipientResolver

__version__ = '1.8.0'
__version__ = '1.9.0'


__all__ = [
Expand Down
12 changes: 2 additions & 10 deletions edx_ace/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,8 @@
:mod:`edx_ace.monitoring` exposes functions that are useful for reporting ACE
message delivery stats to monitoring services.
"""
try:
import newrelic.agent
except ImportError:
newrelic = None # pylint: disable=invalid-name
from edx_django_utils.monitoring import set_custom_attribute


def report(key, value):
report_to_newrelic(key, value)


def report_to_newrelic(key, value):
if newrelic:
newrelic.agent.add_custom_parameter(key, value)
set_custom_attribute(key, value)
1 change: 1 addition & 0 deletions requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ attrs>=17.2.0 # Attributes without boilerplate
sailthru-client==2.2.3
six
stevedore>=1.10.0
edx-django-utils>=5.14.2
14 changes: 7 additions & 7 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ colorama==0.4.6
# via tox
distlib==0.3.8
# via virtualenv
filelock==3.13.1
filelock==3.15.4
# via
# tox
# virtualenv
packaging==23.2
packaging==24.1
# via
# pyproject-api
# tox
platformdirs==4.2.0
platformdirs==4.2.2
# via
# tox
# virtualenv
pluggy==1.4.0
pluggy==1.5.0
# via tox
pyproject-api==1.6.1
pyproject-api==1.7.1
# via tox
tomli==2.0.1
# via
# pyproject-api
# tox
tox==4.14.0
tox==4.15.1
# via -r requirements/ci.in
virtualenv==20.25.1
virtualenv==20.26.3
# via tox
113 changes: 73 additions & 40 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,30 @@
#
# make upgrade
#
asgiref==3.7.2
asgiref==3.8.1
# via django
astroid==3.1.0
astroid==3.2.2
# via
# pylint
# pylint-celery
attrs==23.2.0
# via -r requirements/base.in
backports-tarfile==1.2.0
# via jaraco-context
backports-zoneinfo==0.2.1 ; python_version < "3.9"
# via
# -c requirements/constraints.txt
# -r requirements/dev.in
# -r requirements/quality.in
# django
build==1.1.1
build==1.2.1
# via pip-tools
cachetools==5.3.3
# via tox
certifi==2024.2.2
certifi==2024.6.2
# via requests
cffi==1.16.0
# via pynacl
chardet==5.2.0
# via
# diff-cover
Expand All @@ -34,60 +38,79 @@ click==8.1.7
# via
# click-log
# code-annotations
# edx-django-utils
# edx-lint
# pip-tools
click-log==0.4.0
# via edx-lint
code-annotations==1.6.0
code-annotations==1.8.0
# via edx-lint
colorama==0.4.6
# via tox
diff-cover==8.0.3
diff-cover==9.1.0
# via -r requirements/dev.in
dill==0.3.8
# via pylint
distlib==0.3.8
# via virtualenv
django==4.2.11
django==4.2.13
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -r requirements/base.in
# django-crum
# django-waffle
# edx-django-utils
# edx-i18n-tools
django-crum==0.7.9
# via edx-django-utils
django-waffle==4.1.0
# via edx-django-utils
docutils==0.20.1
# via readme-renderer
edx-i18n-tools==1.3.0
edx-django-utils==5.14.2
# via -r requirements/base.in
edx-i18n-tools==1.6.0
# via -r requirements/dev.in
edx-lint==5.3.6
# via
# -r requirements/dev.in
# -r requirements/quality.in
filelock==3.13.1
filelock==3.15.4
# via
# tox
# virtualenv
idna==3.6
idna==3.7
# via requests
importlib-metadata==7.0.1
importlib-metadata==6.11.0
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# build
# keyring
# twine
importlib-resources==6.1.2
importlib-resources==6.4.0
# via keyring
isort==5.13.2
# via
# -r requirements/quality.in
# pylint
jaraco-classes==3.3.1
jaraco-classes==3.4.0
# via keyring
jaraco-context==5.3.0
# via keyring
jaraco-functools==4.0.1
# via keyring
jinja2==3.1.3
jinja2==3.1.4
# via
# code-annotations
# diff-cover
keyring==24.3.1
keyring==25.2.1
# via twine
lxml==5.1.0
# via edx-i18n-tools
lxml[html-clean,html_clean]==5.2.2
# via
# edx-i18n-tools
# lxml-html-clean
lxml-html-clean==0.1.1
# via lxml
markdown-it-py==3.0.0
# via rich
markupsafe==2.1.5
Expand All @@ -96,44 +119,52 @@ mccabe==0.7.0
# via pylint
mdurl==0.1.2
# via markdown-it-py
more-itertools==10.2.0
# via jaraco-classes
nh3==0.2.15
more-itertools==10.3.0
# via
# jaraco-classes
# jaraco-functools
newrelic==9.11.0
# via edx-django-utils
nh3==0.2.17
# via readme-renderer
packaging==23.2
packaging==24.1
# via
# build
# pyproject-api
# tox
path==16.10.0
path==16.14.0
# via edx-i18n-tools
pbr==6.0.0
# via stevedore
pip-tools==7.4.1
# via -r requirements/dev.in
pkginfo==1.10.0
# via twine
platformdirs==4.2.0
platformdirs==4.2.2
# via
# pylint
# tox
# virtualenv
pluggy==1.4.0
pluggy==1.5.0
# via
# diff-cover
# tox
polib==1.2.0
# via edx-i18n-tools
pycodestyle==2.11.1
psutil==6.0.0
# via edx-django-utils
pycodestyle==2.12.0
# via -r requirements/quality.in
pycparser==2.22
# via cffi
pydocstyle==6.3.0
# via -r requirements/quality.in
pygments==2.17.2
pygments==2.18.0
# via
# diff-cover
# readme-renderer
# rich
pylint==3.1.0
pylint==3.2.4
# via
# edx-lint
# pylint-celery
Expand All @@ -147,9 +178,11 @@ pylint-plugin-utils==0.8.2
# via
# pylint-celery
# pylint-django
pyproject-api==1.6.1
pynacl==1.5.0
# via edx-django-utils
pyproject-api==1.7.1
# via tox
pyproject-hooks==1.0.0
pyproject-hooks==1.1.0
# via
# build
# pip-tools
Expand All @@ -163,7 +196,7 @@ pyyaml==6.0.1
# edx-i18n-tools
readme-renderer==43.0
# via twine
requests==2.31.0
requests==2.32.3
# via
# requests-toolbelt
# sailthru-client
Expand All @@ -185,12 +218,13 @@ six==1.16.0
# python-dateutil
snowballstemmer==2.2.0
# via pydocstyle
sqlparse==0.4.4
sqlparse==0.5.0
# via django
stevedore==5.2.0
# via
# -r requirements/base.in
# code-annotations
# edx-django-utils
text-unidecode==1.3
# via python-slugify
tomli==2.0.1
Expand All @@ -199,31 +233,30 @@ tomli==2.0.1
# pip-tools
# pylint
# pyproject-api
# pyproject-hooks
# tox
tomlkit==0.12.4
tomlkit==0.12.5
# via pylint
tox==4.14.0
tox==4.15.1
# via -r requirements/dev.in
twine==5.0.0
twine==5.1.1
# via -r requirements/dev.in
typing-extensions==4.10.0
typing-extensions==4.12.2
# via
# asgiref
# astroid
# pylint
# rich
urllib3==2.2.1
urllib3==2.2.2
# via
# requests
# twine
virtualenv==20.25.1
virtualenv==20.26.3
# via tox
wheel==0.42.0
wheel==0.43.0
# via
# -r requirements/dev.in
# pip-tools
zipp==3.17.0
zipp==3.19.2
# via
# importlib-metadata
# importlib-resources
Expand Down
Loading
Loading