Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Open Telemetry #550

Merged
merged 3 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions code/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from dotenv import load_dotenv
import sys
from backend.batch.utilities.helpers.EnvHelper import EnvHelper
from azure.monitor.opentelemetry import configure_azure_monitor

# Fixing MIME types for static files under Windows
mimetypes.add_type("application/javascript", ".js")
Expand Down Expand Up @@ -342,3 +343,4 @@ def conversation_custom():

if __name__ == "__main__":
app.run()
configure_azure_monitor()
3 changes: 3 additions & 0 deletions code/backend/batch/function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
from BatchPushResults import bp_batch_push_results
from BatchStartProcessing import bp_batch_start_processing
from GetConversationResponse import bp_get_conversation_response
from azure.monitor.opentelemetry import configure_azure_monitor

configure_azure_monitor()

app = func.FunctionApp(
http_auth_level=func.AuthLevel.FUNCTION
Expand Down
Loading