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 Oct 19, 2023
1 parent 327f162 commit be0239f
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 be0239f

Please sign in to comment.