From 79011482318eef2b5771c63723851aa8cd31c5b6 Mon Sep 17 00:00:00 2001 From: olehp Date: Mon, 22 Jan 2024 11:37:20 +0200 Subject: [PATCH] Added new scope property --- .../Assets/AssetList/AssetEntry/AssetEntry.stories.tsx | 3 ++- src/components/Assets/AssetList/AssetEntry/index.tsx | 10 ++++++++++ src/components/Assets/AssetList/types.ts | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/components/Assets/AssetList/AssetEntry/AssetEntry.stories.tsx b/src/components/Assets/AssetList/AssetEntry/AssetEntry.stories.tsx index cf94eb864..7c17934b6 100644 --- a/src/components/Assets/AssetList/AssetEntry/AssetEntry.stories.tsx +++ b/src/components/Assets/AssetList/AssetEntry/AssetEntry.stories.tsx @@ -54,7 +54,8 @@ export const Default: Story = { importance: 6 } ], - latestSpanTimestamp: "2023-02-20T14:36:03.480951Z" + latestSpanTimestamp: "2023-02-20T14:36:03.480951Z", + instrumentationLibrary: "Global" } } }; diff --git a/src/components/Assets/AssetList/AssetEntry/index.tsx b/src/components/Assets/AssetList/AssetEntry/index.tsx index 0f15b007c..f39dfbecc 100644 --- a/src/components/Assets/AssetList/AssetEntry/index.tsx +++ b/src/components/Assets/AssetList/AssetEntry/index.tsx @@ -185,6 +185,16 @@ export const AssetEntry = (props: AssetEntryProps) => { )} )} + {props.entry.instrumentationLibrary && ( + + + Scope + + {props.entry.instrumentationLibrary} + + + + )} ); diff --git a/src/components/Assets/AssetList/types.ts b/src/components/Assets/AssetList/types.ts index 0d1ca8dc9..a330223bb 100644 --- a/src/components/Assets/AssetList/types.ts +++ b/src/components/Assets/AssetList/types.ts @@ -54,6 +54,7 @@ export interface AssetEntry { p50: Duration | null; p95: Duration | null; displayName: string; + instrumentationLibrary?: string; insights: Insight[]; latestSpanTimestamp: string; impactScores?: ImpactScores;