File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed
ApiTemplate/Source/ApiTemplate
GraphQLTemplate/Source/GraphQLTemplate Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 6363 <PackageReference Include =" OpenTelemetry.Exporter.Console" Version =" 1.1.0" Condition =" '$(OpenTelemetry)' == 'true'" />
6464 <PackageReference Include =" OpenTelemetry.Extensions.Hosting" Version =" 1.0.0-rc7" Condition =" '$(OpenTelemetry)' == 'true'" />
6565 <PackageReference Include =" OpenTelemetry.Instrumentation.AspNetCore" Version =" 1.0.0-rc7" Condition =" '$(OpenTelemetry)' == 'true'" />
66+ <PackageReference Include =" OpenTelemetry.Instrumentation.StackExchangeRedis" Version =" 1.0.0-rc7" Condition =" '$(OpenTelemetry)' == 'true' AND '$(Redis)' == 'true'" />
6667 <PackageReference Include =" Serilog" Version =" 2.10.0" Condition =" '$(Serilog)' == 'true'" />
6768 <PackageReference Include =" Serilog.AspNetCore" Version =" 4.1.0" Condition =" '$(Serilog)' == 'true'" />
6869 <PackageReference Include =" Serilog.Enrichers.Environment" Version =" 2.2.0" Condition =" '$(Serilog)' == 'true'" />
Original file line number Diff line number Diff line change @@ -293,6 +293,9 @@ static string GetHttpFlavour(string protocol)
293293 } ;
294294 options . RecordException = true ;
295295 } ) ;
296+ #if Redis
297+ builder . AddRedisInstrumentation ( ) ;
298+ #endif
296299
297300 if ( webHostEnvironment . IsDevelopment ( ) )
298301 {
Original file line number Diff line number Diff line change @@ -296,6 +296,9 @@ static string GetHttpFlavour(string protocol)
296296 } ;
297297 options . RecordException = true ;
298298 } ) ;
299+ #if Redis
300+ builder . AddRedisInstrumentation ( ) ;
301+ #endif
299302
300303 if ( webHostEnvironment . IsDevelopment ( ) )
301304 {
Original file line number Diff line number Diff line change 7070 <PackageReference Include =" OpenTelemetry.Exporter.Console" Version =" 1.1.0" Condition =" '$(OpenTelemetry)' == 'true'" />
7171 <PackageReference Include =" OpenTelemetry.Extensions.Hosting" Version =" 1.0.0-rc7" Condition =" '$(OpenTelemetry)' == 'true'" />
7272 <PackageReference Include =" OpenTelemetry.Instrumentation.AspNetCore" Version =" 1.0.0-rc7" Condition =" '$(OpenTelemetry)' == 'true'" />
73+ <PackageReference Include =" OpenTelemetry.Instrumentation.StackExchangeRedis" Version =" 1.0.0-rc7" Condition =" '$(OpenTelemetry)' == 'true' AND '$(Redis)' == 'true'" />
7374 <PackageReference Include =" Serilog" Version =" 2.10.0" Condition =" '$(Serilog)' == 'true'" />
7475 <PackageReference Include =" Serilog.AspNetCore" Version =" 4.1.0" Condition =" '$(Serilog)' == 'true'" />
7576 <PackageReference Include =" Serilog.Enrichers.Environment" Version =" 2.2.0" Condition =" '$(Serilog)' == 'true'" />
You can’t perform that action at this time.
0 commit comments