Skip to content

Commit

Permalink
fix(monitor): remove newing-up unused object in UseAzureMonitor (#39356)
Browse files Browse the repository at this point in the history
fixes #38787
  • Loading branch information
amis92 authored and drielenr committed Oct 24, 2023
1 parent 0d13c13 commit 65f0f2a
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 65f0f2a

Please sign in to comment.