in telemetry/csharp/AwsToolkit.Telemetry.Events.Generator.Core/DefinitionsBuilder.cs [593:603]
private MetricType GetMetricType(string name)
{
try
{
return _types.Single(t => t.name == name);
}
catch (Exception e)
{
throw new Exception($"Unable to find metric type: {name}", e);
}
}