Skip to content

Commit

Permalink
remove: application insights
Browse files Browse the repository at this point in the history
  • Loading branch information
alguadam committed Oct 1, 2023
1 parent d50c3c2 commit 46fb5f9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions iebank_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from flask_cors import CORS
from dotenv import load_dotenv
import os
from applicationinsights.flask.ext import AppInsights

app = Flask(__name__)

Expand Down Expand Up @@ -32,11 +31,3 @@
CORS(app)

from iebank_api import routes

# Initialize Application Insights and force flushing application insights handler after each request
if('ENV' != 'ghci'):
appinsights = AppInsights(app)
@app.after_request
def after_request(response):
appinsights.flush()
return response

0 comments on commit 46fb5f9

Please sign in to comment.