Skip to content

Conversation

@sakari-malkki
Copy link
Member

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

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 8, 2026

Quality Gate Passed Quality Gate passed for 'statisticsfinland-github_pxgraf_frontend'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 8, 2026

Quality Gate Passed Quality Gate passed for 'statisticsfinland-github_pxgraf_backend'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@sakari-malkki sakari-malkki requested a review from Copilot January 9, 2026 09:53
Copy link

Copilot AI left a 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_STRING to standard APPLICATIONINSIGHTS_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.

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.

2 participants