File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ COPY UserManagement.Contracts/UserManagement.Contracts.csproj UserManagement.Con
77COPY CentralizedLogging.Contracts/CentralizedLogging.Contracts.csproj CentralizedLogging.Contracts/
88COPY UserManagement.Sdk/UserManagement.Sdk.csproj UserManagement.Sdk/
99COPY CentralizedLogging.Sdk/CentralizedLogging.Sdk.csproj CentralizedLogging.Sdk/
10+ COPY SharedLibrary/SharedLibrary.csproj SharedLibrary/
1011COPY ApiIntegrationMvc/ApiIntegrationMvc.csproj ApiIntegrationMvc/
1112
1213RUN dotnet restore ApiIntegrationMvc/ApiIntegrationMvc.csproj
Original file line number Diff line number Diff line change 1+ using ApiIntegrationMvc ;
12using CentralizedLogging . Sdk . Extensions ;
23using Microsoft . AspNetCore . Authentication . Cookies ;
34using OpenTelemetry . Exporter ;
45using OpenTelemetry . Resources ;
56using OpenTelemetry . Trace ;
67using Serilog ;
7- using System . Diagnostics ;
8+ using SharedLibrary ;
89using UserManagement . Sdk . Extensions ;
910
1011
1415 . ReadFrom . Configuration ( builder . Configuration )
1516 . Enrich . WithProperty ( "Application" , "IntegrationPortal" )
1617 . Enrich . FromLogContext ( )
18+ . Enrich . With ( new ActivityTraceEnricher ( ) ) // <-- custom enricher
1719 . CreateLogger ( ) ;
1820
1921builder . Host . UseSerilog ( ) ;
You can’t perform that action at this time.
0 commit comments