Skip to content

Commit

Permalink
Revert "Xray middleware (#1919)" (#1920)
Browse files Browse the repository at this point in the history
This reverts commit 6e04d0c.
  • Loading branch information
P0NDER0SA authored Aug 2, 2024
1 parent 03d80c4 commit 01f5548
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 233 deletions.
5 changes: 0 additions & 5 deletions application.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import os

from apig_wsgi import make_lambda_handler
from aws_xray_sdk.core import xray_recorder
from aws_xray_sdk.ext.flask.middleware import XRayMiddleware
from dotenv import load_dotenv
from flask import Flask

Expand All @@ -17,9 +15,6 @@

create_app(application)

xray_recorder.configure(service='admin')
XRayMiddleware(application, xray_recorder)

apig_wsgi_handler = make_lambda_handler(application, binary_support=True)

if os.environ.get("USE_LOCAL_JINJA_TEMPLATES") == "True":
Expand Down
3 changes: 0 additions & 3 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,4 @@ ignore_missing_imports = True
ignore_missing_imports = True

[mypy-newrelic.*]
ignore_missing_imports = True

[mypy-aws_xray_sdk.*]
ignore_missing_imports = True
Loading

0 comments on commit 01f5548

Please sign in to comment.