Skip to content

Commit 6e7380c

Browse files
Shared library added in the web app
1 parent fc050c2 commit 6e7380c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

ApiIntegrationMvc/ApiIntegrationMvc.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
<ItemGroup>
1010
<ProjectReference Include="..\CentralizedLogging.Sdk\CentralizedLogging.Sdk.csproj" />
11+
<ProjectReference Include="..\SharedLibrary\SharedLibrary.csproj" />
1112
<ProjectReference Include="..\UserManagement.Sdk\UserManagement.Sdk.csproj" />
1213
</ItemGroup>
1314

ApiIntegrationMvc/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ COPY UserManagement.Contracts/UserManagement.Contracts.csproj UserManagement.Con
77
COPY CentralizedLogging.Contracts/CentralizedLogging.Contracts.csproj CentralizedLogging.Contracts/
88
COPY UserManagement.Sdk/UserManagement.Sdk.csproj UserManagement.Sdk/
99
COPY CentralizedLogging.Sdk/CentralizedLogging.Sdk.csproj CentralizedLogging.Sdk/
10+
COPY SharedLibrary/SharedLibrary.csproj SharedLibrary/
1011
COPY ApiIntegrationMvc/ApiIntegrationMvc.csproj ApiIntegrationMvc/
1112

1213
RUN dotnet restore ApiIntegrationMvc/ApiIntegrationMvc.csproj

ApiIntegrationMvc/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
using ApiIntegrationMvc;
12
using CentralizedLogging.Sdk.Extensions;
23
using Microsoft.AspNetCore.Authentication.Cookies;
34
using OpenTelemetry.Exporter;
45
using OpenTelemetry.Resources;
56
using OpenTelemetry.Trace;
67
using Serilog;
7-
using System.Diagnostics;
8+
using SharedLibrary;
89
using UserManagement.Sdk.Extensions;
910

1011

@@ -14,6 +15,7 @@
1415
.ReadFrom.Configuration(builder.Configuration)
1516
.Enrich.WithProperty("Application", "IntegrationPortal")
1617
.Enrich.FromLogContext()
18+
.Enrich.With(new ActivityTraceEnricher()) // <-- custom enricher
1719
.CreateLogger();
1820

1921
builder.Host.UseSerilog();

0 commit comments

Comments
 (0)