Skip to content

Commit

Permalink
try turning on appinsights logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tblanarik committed Nov 17, 2024
1 parent 0795c44 commit 18d6194
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
import spotbot as sb
import tables
import discord_http
from azure.monitor.opentelemetry import configure_azure_monitor
from opentelemetry import trace
app = Flask(__name__)
configure_azure_monitor()
endpoint = os.environ.get('SECRET_ENDPOINT')

@app.route(f'/{endpoint}', methods=["POST"])
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ azure-data-tables
requests
pytz
flask
gunicorn
gunicorn
azure-monitor-opentelemetry

0 comments on commit 18d6194

Please sign in to comment.