Skip to content

Commit

Permalink
fix(monitor): remove newing-up unused object in UseAzureMonitor (Azur…
Browse files Browse the repository at this point in the history
  • Loading branch information
amis92 authored and matthohn-msft committed Oct 27, 2023
1 parent d7c9b28 commit e86f136
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 e86f136

Please sign in to comment.