chore: correct isMonotonic field name in metric details (#7393)

This commit is contained in:
Amlan Kumar Nandy 2025-03-21 10:36:54 +05:30 committed by GitHub
parent ad2b75e3f0
commit bc72a0a591
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,8 +50,8 @@ function Metadata({
...metadata, ...metadata,
temporality: metadata?.temporality, temporality: metadata?.temporality,
}) })
// Filter out isMonotonic as user input is not required // Filter out monotonic as user input is not required
.filter((key) => key !== 'isMonotonic') .filter((key) => key !== 'monotonic')
.map((key) => ({ .map((key) => ({
key, key,
value: { value: {
@ -74,7 +74,9 @@ function Metadata({
className: 'metric-metadata-key', className: 'metric-metadata-key',
render: (field: string): JSX.Element => ( render: (field: string): JSX.Element => (
<FieldRenderer <FieldRenderer
field={METRIC_METADATA_KEYS[field as keyof typeof METRIC_METADATA_KEYS]} field={
METRIC_METADATA_KEYS[field as keyof typeof METRIC_METADATA_KEYS] || ''
}
/> />
), ),
}, },