diff --git a/src/MyShop.Backend/MyShop.Backend.csproj b/src/MyShop.Backend/MyShop.Backend.csproj index bf84ddd..a4b3588 100644 --- a/src/MyShop.Backend/MyShop.Backend.csproj +++ b/src/MyShop.Backend/MyShop.Backend.csproj @@ -1,25 +1,25 @@  - net5.0 + net6.0 aspnet-MyShop.Backend-54A6C299-F0FC-4B61-B682-9340FFA64668 - - - - - + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - + + + + + + diff --git a/src/MyShop.Backend/Startup.cs b/src/MyShop.Backend/Startup.cs index c01801e..b04735d 100644 --- a/src/MyShop.Backend/Startup.cs +++ b/src/MyShop.Backend/Startup.cs @@ -119,18 +119,6 @@ public void ConfigureServices(IServiceCollection services) }); services.AddDatabaseDeveloperPageExceptionFilter(); - services.AddOpenTelemetryTracing(tracing => - { - tracing.AddAspNetCoreInstrumentation() - .AddHttpClientInstrumentation() - .AddSource("OTel.Demo") - .SetSampler(new AlwaysOnSampler()) - .AddZipkinExporter(option => - { - option.ServiceName = typeof(Startup).Assembly.GetName().Name; - option.Endpoint = new Uri("http://localhost:9411/api/v2/spans"); - }); - }); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. diff --git a/src/MyShop.BlazorFrontend/MyShop.BlazorFrontend.csproj b/src/MyShop.BlazorFrontend/MyShop.BlazorFrontend.csproj index f2e7bef..553acf0 100644 --- a/src/MyShop.BlazorFrontend/MyShop.BlazorFrontend.csproj +++ b/src/MyShop.BlazorFrontend/MyShop.BlazorFrontend.csproj @@ -1,13 +1,13 @@ - net5.0 + net6.0 - - - + + + diff --git a/src/MyShop.Frontend/MyShop.Frontend.csproj b/src/MyShop.Frontend/MyShop.Frontend.csproj index 480d6b7..537ac31 100644 --- a/src/MyShop.Frontend/MyShop.Frontend.csproj +++ b/src/MyShop.Frontend/MyShop.Frontend.csproj @@ -1,7 +1,7 @@  - net5.0 + net6.0 diff --git a/test/MyShop.Backend.IntegrationTests/BrandApiTests.cs b/test/MyShop.Backend.IntegrationTests/BrandApiTests.cs index a621bf3..44a5a81 100644 --- a/test/MyShop.Backend.IntegrationTests/BrandApiTests.cs +++ b/test/MyShop.Backend.IntegrationTests/BrandApiTests.cs @@ -20,7 +20,7 @@ public BrandApiTests(TestWebApplicationFactory factory) public async Task GetBrands_Success() { var client = _factory.CreateClient(); - var response = await client.GetAsync("api/categories"); + var response = await client.GetAsync("api/brands"); response.EnsureSuccessStatusCode(); var brands = await response.Content.ReadAsAsync>(); diff --git a/test/MyShop.Backend.IntegrationTests/MyShop.Backend.IntegrationTests.csproj b/test/MyShop.Backend.IntegrationTests/MyShop.Backend.IntegrationTests.csproj index 37c9705..66ee506 100644 --- a/test/MyShop.Backend.IntegrationTests/MyShop.Backend.IntegrationTests.csproj +++ b/test/MyShop.Backend.IntegrationTests/MyShop.Backend.IntegrationTests.csproj @@ -1,13 +1,13 @@  - net5.0 + net6.0 false - + @@ -18,8 +18,8 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/test/MyShop.Backend.Tests/MyShop.Backend.Tests.csproj b/test/MyShop.Backend.Tests/MyShop.Backend.Tests.csproj index 6a02cfc..1bb48ad 100644 --- a/test/MyShop.Backend.Tests/MyShop.Backend.Tests.csproj +++ b/test/MyShop.Backend.Tests/MyShop.Backend.Tests.csproj @@ -1,7 +1,7 @@  - net5.0 + net6.0 false @@ -18,7 +18,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - +