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

MTP-1921: Add Azure Application Insights request tracing and logging #587

Merged
merged 4 commits into from
Aug 4, 2022

Conversation

ushkarev
Copy link
Contributor

@ushkarev ushkarev commented Aug 3, 2022

uWSGI now runs in lazy mode such that each process loads its own complete application rather than forking the master. This now requires the spooler to setup django.

Lazy apps are needed if telemetry is to be sent to Azure Application Insights: the opencensus library starts a background thread on launch to transport telemetry to Azure, but if uWSGI loads the application and then forks, this thread is no longer accessible from the new process.

In prod environment:
mtp logs of level INFO and higher
• other logs of level WARNING and higher
• 10% of requests traces
…will be sent.

Depends on common#539.

…n complete application rather than forking the master. This now requires the spooler to setup django.

Lazy apps are needed if telemetry is to be sent to Azure Application Insights: the `opencensus` library starts a background thread on launch to transport telemetry to Azure, but if uWSGI loads the application and _then_ forks, this thread is no longer accessible from the new process.
…by adding appropriate tagging courtesy of mtp-common
…adding appropriate tagging courtesy of mtp-common
…Insights

…adding appropriate tagging courtesy of mtp-common
@ushkarev ushkarev marked this pull request as ready for review August 4, 2022 09:48
@ushkarev ushkarev requested a review from a team as a code owner August 4, 2022 09:48
@neilmendum neilmendum merged commit 8215217 into main Aug 4, 2022
@neilmendum neilmendum deleted the app-insights branch August 4, 2022 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants