Skip to content

Commit 20f0acf

Browse files
damntreckyNick Ardecky
andauthored
gumby: add shared telemetry metrics for AmazonQ Transform + allow spaces in values (#638)
* Feature - add shared telemetry metrics for AmazonQ Transform * Chore - remove type codeTransformConfigurationFilePath * Chore - update metric description definitions text * Chore - remove isVisibleToUser field * Chore - add newline character to file * Chore - update description for total runtime * Chore - fix build isssue to replace allowedValues spaces with underscores * Chore - follow up with jetbrains underscore conversion --------- Co-authored-by: Nick Ardecky <[email protected]>
1 parent 4341f8f commit 20f0acf

File tree

4 files changed

+552
-3
lines changed

4 files changed

+552
-3
lines changed

telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/DefinitionsBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private CodeTypeDeclaration GenerateEnumStruct(MetricType type)
210210
{
211211
// eg: public static readonly Runtime Dotnetcore21 = new Runtime("dotnetcore2.1")
212212
CodeMemberField field = new CodeMemberField($"readonly {type.GetGeneratedTypeName()}",
213-
allowedValue.ToPascalCase().Replace(".", "").Replace("-", ""))
213+
allowedValue.Replace(" ", "_").ToPascalCase().Replace(".", "").Replace("-", ""))
214214
{
215215
InitExpression = new CodeObjectCreateExpression(type.GetGeneratedTypeName(),
216216
new CodeExpression[] {new CodePrimitiveExpression(allowedValue)}),

0 commit comments

Comments
 (0)