Skip to content

Commit b7a339e

Browse files
committed
Make event name a constant
1 parent bd0614b commit b7a339e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Common/Commands.Common/MetricHelper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public class MetricHelper
3333
protected INetworkHelper _networkHelper;
3434
private const int FlushTimeoutInMilli = 5000;
3535
private const string DEFAULT_PSVERSION = "3.0.0.0";
36+
private const string EVENT_NAME = "cmdletInvocation";
3637

3738
/// <summary>
3839
/// The collection of telemetry clients.
@@ -190,7 +191,7 @@ private void LogUsageEvent(AzurePSQoSEvent qos)
190191
{
191192
var pageViewTelemetry = new PageViewTelemetry
192193
{
193-
Name = "cmdletInvocation",
194+
Name = EVENT_NAME,
194195
Duration = qos.Duration,
195196
Timestamp = qos.StartTime
196197
};

0 commit comments

Comments
 (0)