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

Automatically send Rails logs to AppInsights #5

Open
wants to merge 4 commits into
base: master
from

Conversation

@c-w
Copy link

c-w commented Dec 17, 2019

Currently this gem enables Rails applications to send telemetry such as requests and exceptions to Azure Application Insights, via ApplicationInsights::Rack::TrackRequest and AppInsights::ExceptionHandling respectively. To make it even easier to debug of Rails applications that use this gem, this pull request augments the existing functionality to also send logs to the Application Insights via the TrackTrace API. AppInsights plugins for other popular server frameworks implement similar functionality, e.g. refer to the plugins for Flask and Django.

To reduce the performance impact of turning on log shipping, this pull request also adds a configuration option to make the calls to the application_insights SDK non-blocking and have a background thread perform the HTTP requests to the Application Insights service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.