Skip to content

Commit

Permalink
Add AWS X-Ray enhanced tracing to RAiD create and Update API
Browse files Browse the repository at this point in the history
Add AWS X-Ray enhanced tracing to RAiD create and Update API to track how long responses from DynamoDB and SQS take.
  • Loading branch information
rdando committed Jul 22, 2018
1 parent 66a957f commit 3043cf9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
boto3==1.4.4
boto3==1.7.62
PyJWT==1.4.2
requests==2.18.4
boto==2.48.0
pytz==2017.3
pytz==2017.3
aws-xray-sdk==0.93
5 changes: 5 additions & 0 deletions src/handlers/raid_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from botocore.exceptions import ClientError
import json
import urllib
from aws_xray_sdk.core import patch
from helpers import web_helpers
from helpers import ands_helpers
from helpers import raid_helpers
Expand All @@ -16,6 +17,10 @@
logger = logging.getLogger()
logger.setLevel(logging.INFO)

# AWS X-Ray Config
libs_to_patch = ('boto3', 'requests')
patch(libs_to_patch)


def get_raids_handler(event, context):
"""
Expand Down
5 changes: 0 additions & 5 deletions src/requirements.txt

This file was deleted.

0 comments on commit 3043cf9

Please sign in to comment.