From b4b4eb1519f1f7d42199b951866b577c44a8179b Mon Sep 17 00:00:00 2001 From: "tim.reichard" Date: Tue, 17 Nov 2020 16:14:30 -0600 Subject: [PATCH] Adding ddtrace logger to DatadogLogger by default --- HISTORY.rst | 6 ++++++ aioradio/logger.py | 2 +- aioradio/requirements.txt | 2 +- setup.py | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index cbfc180..b1afaaa 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,12 @@ History ======= +v0.9.1 (2020-11-17) +----------------------- + +* Add ddtrace logger to DatadogLogger by default saving the user having to pass this info on their side. + + v0.9.0 (2020-11-17) ----------------------- diff --git a/aioradio/logger.py b/aioradio/logger.py index 098b06f..46080a8 100644 --- a/aioradio/logger.py +++ b/aioradio/logger.py @@ -47,7 +47,7 @@ def __init__( self.logger = logging.getLogger(main_logger) self.logger.setLevel(log_level) self.log_level = log_level - self.datadog_loggers = set(datadog_loggers) if datadog_loggers else [] + self.datadog_loggers = set(datadog_loggers + ['ddtrace']) if datadog_loggers else ['ddtrace'] self.format = log_format self.add_handlers() diff --git a/aioradio/requirements.txt b/aioradio/requirements.txt index a15ed4e..f5b557d 100644 --- a/aioradio/requirements.txt +++ b/aioradio/requirements.txt @@ -2,7 +2,7 @@ aioboto3==8.0.5 aiobotocore==1.1.2 aiojobs==0.2.2 aioredis==1.3.1 -ddtrace==0.43.1 +ddtrace==0.44.0 fakeredis==1.4.4 flask==1.1.2 httpx==0.16.1 diff --git a/setup.py b/setup.py index 6b99eab..fcf68c2 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ long_description = fileobj.read() setup(name='aioradio', - version='0.9.0', + version='0.9.1', description='Generic asynchronous i/o python utilities for AWS services (SQS, S3, DynamoDB, Secrets Manager), Redis, MSSQL (pyodbc), JIRA and more', long_description=long_description, long_description_content_type="text/markdown",