fix : Support JSON type in Surrounding Context. (#1652)

Fixes https://github.com/hyperdxio/hyperdx/issues/983

This issue was closed as not planned, but I think the solution is simple enough that it should be considered for merging.

row data has `__hdx_resource_attributes` (which is `ROW_DATA_ALIASES.RESOURCE_ATTRIBUTES`) and it is flattened so that it could be used for both map and json type.
This commit is contained in:
rajin 2026-02-24 01:10:15 +09:00 committed by GitHub
parent b5bb69e37c
commit 575779d2d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"@hyperdx/app": patch
---
Support JSON type in Surrounding Context

View file

@ -145,7 +145,7 @@ export default function ContextSubpanel({
'k8s.pod.name': k8sPodName,
'host.name': host,
'service.name': service,
} = rowData.ResourceAttributes ?? {};
} = rowData[ROW_DATA_ALIASES.RESOURCE_ATTRIBUTES] ?? {};
const CONTEXT_MAPPING = useMemo(
() =>