diff --git a/telemetry/csharp/AwsToolkit.Telemetry.Events.SourceGenerator/DefinitionsBuilder.cs b/telemetry/csharp/AwsToolkit.Telemetry.Events.SourceGenerator/DefinitionsBuilder.cs index 9e4d1ab4..9d389b8a 100644 --- a/telemetry/csharp/AwsToolkit.Telemetry.Events.SourceGenerator/DefinitionsBuilder.cs +++ b/telemetry/csharp/AwsToolkit.Telemetry.Events.SourceGenerator/DefinitionsBuilder.cs @@ -349,7 +349,7 @@ private CodeMemberMethod CreateRecordMetricMethodByDataClass(Metric metric) CodeMemberMethod recordMethod = new CodeMemberMethod { Attributes = MemberAttributes.Public | MemberAttributes.Static, - Name = $"Record{SanitizeName(metric.name)}", + Name = $"XxRecord{SanitizeName(metric.name)}", ReturnType = new CodeTypeReference() };