Skip to content

Commit 3756cef

Browse files
committed
Set UserId to Environment.UserName in AnalyticsService
Replaced the auto-generated ID with the current user's username for better traceability and alignment with the analytics requirements. This change ensures the UserId field reflects the actual user context.
1 parent d1dfe47 commit 3756cef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/HI2UC/Services/AnalyticsService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public async Task SendAsync(Data data)
4646

4747
public class Data
4848
{
49-
public string UserId { get; } = GenerateId();
49+
public string UserId { get; } = Environment.UserName;
5050

5151
/// <summary>
5252
/// Gets or sets the operating system version of the device or system sending analytics data.

0 commit comments

Comments
 (0)