Skip to content

Conversation

@harsimar
Copy link
Member

This adds some public apis to configure AzureMonitorExporterOptions from @Microsoft.ApplicationInsights 3.x

See issue

Copilot AI review requested due to automatic review settings December 31, 2025 00:41
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 adds public APIs to the TelemetryConfiguration class to configure Azure Monitor exporter options for ApplicationInsights 3.x. These methods provide a user-friendly way to configure sampling, storage, live metrics, and trace-based log sampling settings.

  • Adds six new public configuration methods to TelemetryConfiguration
  • Provides comprehensive test coverage with 350 lines of unit tests
  • Updates the public API surface documentation

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
BASE/src/Microsoft.ApplicationInsights/Extensibility/TelemetryConfiguration.cs Adds six new public methods (SetSamplingRatio, SetTracesPerSecond, SetStorageDirectory, DisableOfflineStorage, DisableLiveMetrics, DisableTraceBasedLogsSampling) to configure AzureMonitorExporterOptions
BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/TelemetryConfigurationSetExporterOptionsTests.cs Comprehensive test suite with 18 test methods covering all new configuration methods, including validation, error handling, and chaining scenarios
.publicApi/Microsoft.ApplicationInsights.dll/Stable/PublicAPI.Unshipped.txt Documents the six new public APIs for API compatibility tracking

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@harsimar harsimar merged commit 39a2db8 into main Jan 5, 2026
22 checks passed
@harsimar harsimar deleted the harskaur/baseExporterOptions branch January 5, 2026 23:23
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.

3 participants