Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Jan 21, 2024
1 parent 0ea8faf commit b8e7251
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static void AddTelemetryLogging(this IServiceCollection services, AppSett
logging.ClearProviders();
logging.AddConsole();

if ( !string.IsNullOrEmpty(appSettings.OpenTelemetry.LogsEndpoint) )
if ( !string.IsNullOrEmpty(appSettings.OpenTelemetry?.LogsEndpoint) )
{
logging.AddOpenTelemetry(builder =>
builder.AddOtlpExporter(
Expand Down

0 comments on commit b8e7251

Please sign in to comment.