-
Notifications
You must be signed in to change notification settings - Fork 3
Application insights fixes #142
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
base: dev
Are you sure you want to change the base?
Conversation
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors Application Insights configuration to use ASP.NET Core's native logging pipeline instead of NLog integration. The main changes align Application Insights with standard configuration patterns and improve its configurability.
Key Changes:
- Moved Application Insights from NLog to ASP.NET Core logging pipeline with dedicated configuration section
- Changed environment variable from
PXGRAF_APPLICATIONINSIGHTS_CONNECTION_STRINGto standardAPPLICATIONINSIGHTS_CONNECTION_STRING - Added configurable minimum log level and adaptive sampling options
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| docs/README.md | Updated documentation to reflect new ApplicationInsights configuration section |
| docs/PRODUCTION_SETUP.md | Updated environment variable name and added configuration examples |
| docs/LOCAL_SETUP.md | Updated setup instructions with new configuration path and options |
| UnitTests/ConfigurationTests/ConfigurationTests.cs | Added tests for Application Insights configuration loading |
| UnitTests/ConfigurationTests/ApplicationInsightsConfigTests.cs | New comprehensive test suite for ApplicationInsightsConfig class |
| PxGraf/nlog.config | Removed Application Insights NLog target and rules |
| PxGraf/appsettings.template.json | Updated configuration structure for Application Insights |
| PxGraf/appsettings.deploy.json | Added Application Insights configuration section |
| PxGraf/Startup.cs | Refactored Application Insights setup to use new configuration |
| PxGraf/Settings/Configuration.cs | Updated to use ApplicationInsightsConfig class |
| PxGraf/Settings/ApplicationInsightsConfig.cs | New configuration class for Application Insights |
| PxGraf/PxGraf.csproj | Version bump to 4.5.2 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



Changes are virtually identical to this PxApi PR: StatisticsFinland/PxApi#43