Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Automatically send Rails logs to AppInsights #5
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.