Skip to content

Commit

Permalink
📝 (docs): update MigrationTools.xml with new Git metadata
Browse files Browse the repository at this point in the history
🔧 (MigrationToolHost.cs): change ApplicationInsights configuration to use TelemetryConfiguration
✅ (TelemetryClientAdapterTests): remove incomplete and unused TrackExceptionTest method

The Git metadata in MigrationTools.xml is updated to reflect the latest commit information, ensuring documentation accuracy. The ApplicationInsights configuration is updated to use TelemetryConfiguration instead of TelemetryClient, aligning with the latest best practices. The incomplete and unused TrackExceptionTest method is removed to clean up the test suite and avoid confusion.
  • Loading branch information
MrHinsh committed Jul 26, 2024
1 parent 061dcdc commit ea0ffa0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
12 changes: 6 additions & 6 deletions docs/Reference/Generated/MigrationTools.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/MigrationTools.Host/MigrationToolHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static IHostBuilder CreateDefaultBuilder(string[] args)
.WriteTo.Console(restrictedToMinimumLevel: LogEventLevel.Debug, theme: AnsiConsoleTheme.Code, outputTemplate: outputTemplate))
.WriteTo.Logger(lc => lc
.Filter.ByExcluding(Matching.FromSource("Microsoft"))
.WriteTo.ApplicationInsights(services.GetService<TelemetryClient>(), new CustomConverter(), LogEventLevel.Error));
.WriteTo.ApplicationInsights(services.GetService<TelemetryConfiguration> (), new CustomConverter(), LogEventLevel.Error));
logs++;
LoggerHasBeenBuilt = true;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ namespace MigrationTools.Tests
[TestClass()]
public class TelemetryClientAdapterTests
{
[TestMethod()]
public void TrackExceptionTest()
{
TelemetryClientAdapter x = new TelemetryClientAdapter(null,);
}

}
}

0 comments on commit ea0ffa0

Please sign in to comment.