Skip to content

Commit

Permalink
CWA customer changes #4: Allow unknown typs for Metrics.Fields.values
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenyuTan-amz committed Apr 12, 2022
1 parent a7251cf commit b5e94ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metric/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,9 @@ func convertField(v interface{}) interface{} {
return float64(*v)
}
default:
return nil
//TODO: change here once we figure out how to handle our own map-based metric definition
//return v here because we don't want to return nil for unknown types
return v
}
return nil
}

0 comments on commit b5e94ea

Please sign in to comment.