diff --git a/src/LondonTravel.Skill/SkillConfiguration.cs b/src/LondonTravel.Skill/SkillConfiguration.cs index 99cdc256..023f714f 100644 --- a/src/LondonTravel.Skill/SkillConfiguration.cs +++ b/src/LondonTravel.Skill/SkillConfiguration.cs @@ -8,11 +8,6 @@ namespace MartinCostello.LondonTravel.Skill; /// public sealed class SkillConfiguration { - /// - /// Gets or sets the ApplicationInsights connection string to use. - /// - public string ApplicationInsightsConnectionString { get; set; } = string.Empty; - /// /// Gets or sets the URL for the skill API. /// @@ -53,7 +48,6 @@ public static SkillConfiguration CreateDefaultConfiguration() return new SkillConfiguration() { - ApplicationInsightsConnectionString = GetEnvironmentVariable("APPINSIGHTS_CONNECTIONSTRING"), SkillApiUrl = GetEnvironmentVariable("SKILL_API_HOSTNAME"), SkillId = GetEnvironmentVariable("SKILL_ID"), TflApplicationId = GetEnvironmentVariable("TFL_APP_ID"), diff --git a/test/LondonTravel.Skill.Tests/FunctionTests.cs b/test/LondonTravel.Skill.Tests/FunctionTests.cs index 69808a86..8065f72c 100644 --- a/test/LondonTravel.Skill.Tests/FunctionTests.cs +++ b/test/LondonTravel.Skill.Tests/FunctionTests.cs @@ -38,7 +38,6 @@ protected virtual SkillConfiguration CreateConfiguration() { var config = SkillConfiguration.CreateDefaultConfiguration(); - config.ApplicationInsightsConnectionString = "InstrumentationKey=my-application-insights-key;IngestionEndpoint=https://northeurope-0.in.applicationinsights.azure.com/;LiveEndpoint=https://northeurope.livediagnostics.monitor.azure.com/"; config.SkillApiUrl = "https://londontravel.martincostello.local/"; config.SkillId = "my-skill-id"; config.TflApplicationId = "my-tfl-app-id"; @@ -136,7 +135,7 @@ private sealed class TestAlexaFunction( protected override void ConfigureServices(IServiceCollection services) { - services.AddLogging((builder) => builder.AddXUnit(this).SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Debug)); + services.AddLogging((builder) => builder.AddXUnit(this).SetMinimumLevel(LogLevel.Debug)); services.AddSingleton(config); services.AddSingleton( (_) => new HttpRequestInterceptionFilter(options));