diff --git a/src/Microsoft.FeatureManagement.Telemetry.ApplicationInsights.AspNetCore/TargetingTelemetryInitializer.cs b/src/Microsoft.FeatureManagement.Telemetry.ApplicationInsights.AspNetCore/TargetingTelemetryInitializer.cs index 5614a3f3..e01bd9e4 100644 --- a/src/Microsoft.FeatureManagement.Telemetry.ApplicationInsights.AspNetCore/TargetingTelemetryInitializer.cs +++ b/src/Microsoft.FeatureManagement.Telemetry.ApplicationInsights.AspNetCore/TargetingTelemetryInitializer.cs @@ -34,12 +34,12 @@ protected override void OnInitializeTelemetry(HttpContext httpContext, RequestTe { if (telemetry == null) { - throw new ArgumentNullException("telemetry"); + throw new ArgumentNullException(nameof(telemetry)); } if (httpContext == null) { - throw new ArgumentNullException("httpContext"); + throw new ArgumentNullException(nameof(httpContext)); } // Extract the targeting id from the http context