From ea0ffa07c0c5bc3b22543d0e60aa83aa6f02cdb3 Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Fri, 26 Jul 2024 12:48:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20(docs):=20update=20MigrationTool?= =?UTF-8?q?s.xml=20with=20new=20Git=20metadata=20=F0=9F=94=A7=20(Migration?= =?UTF-8?q?ToolHost.cs):=20change=20ApplicationInsights=20configuration=20?= =?UTF-8?q?to=20use=20TelemetryConfiguration=20=E2=9C=85=20(TelemetryClien?= =?UTF-8?q?tAdapterTests):=20remove=20incomplete=20and=20unused=20TrackExc?= =?UTF-8?q?eptionTest=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- docs/Reference/Generated/MigrationTools.xml | 12 ++++++------ src/MigrationTools.Host/MigrationToolHost.cs | 2 +- .../Services/TelemetryClientAdapterTests.cs | 6 +----- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/docs/Reference/Generated/MigrationTools.xml b/docs/Reference/Generated/MigrationTools.xml index c375f59d3..436f06cb8 100644 --- a/docs/Reference/Generated/MigrationTools.xml +++ b/docs/Reference/Generated/MigrationTools.xml @@ -609,27 +609,27 @@ - => @"3b32325" + => @"061dcdc" - => @"3b32325b996b453ea0a9e7da89fcabee7bb5f7aa" + => @"061dcdc0b8ecf31f14ad6bdfab5d81892b8d6dff" - => @"2024-07-26T11:42:33+01:00" + => @"2024-07-26T12:01:47+01:00" - => @"20" + => @"21" - => @"v15.1.5-Preview.2-20-g3b32325" + => @"v15.1.5-Preview.2-21-g061dcdc" @@ -664,7 +664,7 @@ - => @"25" + => @"26" diff --git a/src/MigrationTools.Host/MigrationToolHost.cs b/src/MigrationTools.Host/MigrationToolHost.cs index 521d9daa9..8b19b442c 100644 --- a/src/MigrationTools.Host/MigrationToolHost.cs +++ b/src/MigrationTools.Host/MigrationToolHost.cs @@ -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(), new CustomConverter(), LogEventLevel.Error)); + .WriteTo.ApplicationInsights(services.GetService (), new CustomConverter(), LogEventLevel.Error)); logs++; LoggerHasBeenBuilt = true; }); diff --git a/src/MigrationTools.Tests/Services/TelemetryClientAdapterTests.cs b/src/MigrationTools.Tests/Services/TelemetryClientAdapterTests.cs index de23bdd04..49f6b432b 100644 --- a/src/MigrationTools.Tests/Services/TelemetryClientAdapterTests.cs +++ b/src/MigrationTools.Tests/Services/TelemetryClientAdapterTests.cs @@ -13,10 +13,6 @@ namespace MigrationTools.Tests [TestClass()] public class TelemetryClientAdapterTests { - [TestMethod()] - public void TrackExceptionTest() - { - TelemetryClientAdapter x = new TelemetryClientAdapter(null,); - } + } } \ No newline at end of file