From 7b5cb0267b19e5bcdadb0a386af103e4a0b25b61 Mon Sep 17 00:00:00 2001 From: henrik Date: Mon, 23 Dec 2024 01:06:30 +0100 Subject: [PATCH] feat: Adds APM to Silo & readded gitversion --- .idea/.idea.Pushy/.idea/vcs.xml | 6 ++++++ Pushy.Silo/Program.cs | 2 ++ Pushy.Silo/Pushy.Silo.csproj | 7 +++++++ Pushy.Silo/appsettings.json | 3 +++ Pushy/Pushy.Client/Pushy.Client.csproj | 2 +- Pushy/Pushy/Program.cs | 2 +- Pushy/Pushy/Pushy.csproj | 6 +++++- 7 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.idea/.idea.Pushy/.idea/vcs.xml b/.idea/.idea.Pushy/.idea/vcs.xml index 94a25f7..4c6280e 100644 --- a/.idea/.idea.Pushy/.idea/vcs.xml +++ b/.idea/.idea.Pushy/.idea/vcs.xml @@ -1,5 +1,11 @@ + + + + + + diff --git a/Pushy.Silo/Program.cs b/Pushy.Silo/Program.cs index b46f95f..bae36e3 100644 --- a/Pushy.Silo/Program.cs +++ b/Pushy.Silo/Program.cs @@ -22,5 +22,7 @@ builder.UseOrleans(silo => }); }); +builder.Services.AddAllElasticApm(); + var host = builder.Build(); host.Run(); \ No newline at end of file diff --git a/Pushy.Silo/Pushy.Silo.csproj b/Pushy.Silo/Pushy.Silo.csproj index 2f8f33a..aa5f099 100644 --- a/Pushy.Silo/Pushy.Silo.csproj +++ b/Pushy.Silo/Pushy.Silo.csproj @@ -6,9 +6,16 @@ enable dotnet-Pushy.Silo-607fe096-6d3f-44f4-8e5d-8a2c875f8758 Linux + Pushy Silo + Henrik Lassen + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/Pushy.Silo/appsettings.json b/Pushy.Silo/appsettings.json index b2dcdb6..d7be3a4 100644 --- a/Pushy.Silo/appsettings.json +++ b/Pushy.Silo/appsettings.json @@ -4,5 +4,8 @@ "Default": "Information", "Microsoft.Hosting.Lifetime": "Information" } + }, + "ElasticApm": { + "ServerUrl": "http://apm.home.local:8200" } } diff --git a/Pushy/Pushy.Client/Pushy.Client.csproj b/Pushy/Pushy.Client/Pushy.Client.csproj index 2470933..f3eba12 100644 --- a/Pushy/Pushy.Client/Pushy.Client.csproj +++ b/Pushy/Pushy.Client/Pushy.Client.csproj @@ -11,7 +11,7 @@ - + diff --git a/Pushy/Pushy/Program.cs b/Pushy/Pushy/Program.cs index 84b8c3e..18974c3 100644 --- a/Pushy/Pushy/Program.cs +++ b/Pushy/Pushy/Program.cs @@ -51,11 +51,11 @@ if (builder.Environment.IsProduction()) opt.Transport = new DistributedTransport(transport); }); } +builder.Services.AddAllElasticApm(); builder.Services.AddScoped(service => service.GetRequiredService().GetGrain(Guid.Empty) ); -builder.Services.AddAllElasticApm(); builder.Services.AddHealthChecks(); builder.Services.AddCors(policy => diff --git a/Pushy/Pushy/Pushy.csproj b/Pushy/Pushy/Pushy.csproj index b383ec2..5a06ffe 100644 --- a/Pushy/Pushy/Pushy.csproj +++ b/Pushy/Pushy/Pushy.csproj @@ -16,13 +16,17 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + - +