Skip to content

Commit

Permalink
fix(monitor): remove newing-up unused object in UseAzureMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
amis92 committed Oct 18, 2023
1 parent 76d0ba5 commit 3ca6444
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static OpenTelemetryBuilder UseAzureMonitor(this OpenTelemetryBuilder bui
{
builder.Services.TryAddSingleton<IConfigureOptions<AzureMonitorOptions>,
DefaultAzureMonitorOptions>();
return builder.UseAzureMonitor(o => o = new AzureMonitorOptions());
return builder.UseAzureMonitor(o => { });
}

/// <summary>
Expand Down

0 comments on commit 3ca6444

Please sign in to comment.