mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
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:
parent
b5bb69e37c
commit
575779d2d0
2 changed files with 6 additions and 1 deletions
5
.changeset/twenty-colts-jump.md
Normal file
5
.changeset/twenty-colts-jump.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@hyperdx/app": patch
|
||||
---
|
||||
|
||||
Support JSON type in Surrounding Context
|
||||
|
|
@ -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(
|
||||
() =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue