diff --git a/src/components/Insights/DurationInsight/index.tsx b/src/components/Insights/DurationInsight/index.tsx index 31c3e3151..ff09a80e2 100644 --- a/src/components/Insights/DurationInsight/index.tsx +++ b/src/components/Insights/DurationInsight/index.tsx @@ -149,7 +149,8 @@ export const DurationInsight = (props: DurationInsightProps) => { props.onHistogramButtonClick( props.insight.spanInfo.instrumentationLibrary, props.insight.spanInfo.name, - props.insight.type + props.insight.type, + props.insight.spanInfo.displayName ); }; diff --git a/src/components/Insights/DurationInsight/types.ts b/src/components/Insights/DurationInsight/types.ts index 5ee40ff45..d47c95425 100644 --- a/src/components/Insights/DurationInsight/types.ts +++ b/src/components/Insights/DurationInsight/types.ts @@ -6,7 +6,8 @@ export interface DurationInsightProps extends InsightProps { onHistogramButtonClick: ( instrumentationLibrary: string, name: string, - insightType: InsightType + insightType: InsightType, + displayName: string ) => void; onLiveButtonClick: (prefixedCodeObjectId: string) => void; onCompareButtonClick: ( diff --git a/src/components/Insights/InsightList/index.tsx b/src/components/Insights/InsightList/index.tsx index ab2fb0765..5c6079bc5 100644 --- a/src/components/Insights/InsightList/index.tsx +++ b/src/components/Insights/InsightList/index.tsx @@ -245,14 +245,16 @@ const renderInsightCard = ( const handleHistogramButtonClick = ( instrumentationLibrary: string, name: string, - insightType: InsightType + insightType: InsightType, + displayName: string ) => { window.sendMessageToDigma({ action: actions.OPEN_HISTOGRAM, payload: { instrumentationLibrary, name, - insightType + insightType, + displayName } }); }; diff --git a/src/components/Insights/NoScalingIssueInsight/index.tsx b/src/components/Insights/NoScalingIssueInsight/index.tsx index 60dbcfac7..0dbe96cf8 100644 --- a/src/components/Insights/NoScalingIssueInsight/index.tsx +++ b/src/components/Insights/NoScalingIssueInsight/index.tsx @@ -9,7 +9,8 @@ export const NoScalingIssueInsight = (props: NoScalingIssueInsightProps) => { props.onHistogramButtonClick( props.insight.spanInfo.instrumentationLibrary, props.insight.spanInfo.name, - props.insight.type + props.insight.type, + props.insight.spanInfo.displayName ); }; diff --git a/src/components/Insights/NoScalingIssueInsight/types.ts b/src/components/Insights/NoScalingIssueInsight/types.ts index 3b732e000..b06e4f16b 100644 --- a/src/components/Insights/NoScalingIssueInsight/types.ts +++ b/src/components/Insights/NoScalingIssueInsight/types.ts @@ -6,6 +6,7 @@ export interface NoScalingIssueInsightProps extends InsightProps { onHistogramButtonClick: ( instrumentationLibrary: string, name: string, - insightType: InsightType + insightType: InsightType, + displayName: string ) => void; } diff --git a/src/components/Insights/PerformanceAtScaleInsight/index.tsx b/src/components/Insights/PerformanceAtScaleInsight/index.tsx index d8cad43a2..3aa8f01cb 100644 --- a/src/components/Insights/PerformanceAtScaleInsight/index.tsx +++ b/src/components/Insights/PerformanceAtScaleInsight/index.tsx @@ -58,7 +58,8 @@ export const PerformanceAtScaleInsight = ( props.onHistogramButtonClick( props.insight.spanInfo.instrumentationLibrary, props.insight.spanInfo.name, - props.insight.type + props.insight.type, + props.insight.spanInfo.displayName ); }; diff --git a/src/components/Insights/PerformanceAtScaleInsight/types.ts b/src/components/Insights/PerformanceAtScaleInsight/types.ts index d8b780767..6c2e5691f 100644 --- a/src/components/Insights/PerformanceAtScaleInsight/types.ts +++ b/src/components/Insights/PerformanceAtScaleInsight/types.ts @@ -6,6 +6,7 @@ export interface PerformanceAtScaleInsightProps extends InsightProps { onHistogramButtonClick: ( instrumentationLibrary: string, name: string, - insightType: InsightType + insightType: InsightType, + displayName: string ) => void; } diff --git a/src/components/Insights/ScalingIssueInsight/index.tsx b/src/components/Insights/ScalingIssueInsight/index.tsx index 51d22adfa..3e7e1da68 100644 --- a/src/components/Insights/ScalingIssueInsight/index.tsx +++ b/src/components/Insights/ScalingIssueInsight/index.tsx @@ -33,7 +33,8 @@ export const ScalingIssueInsight = (props: ScalingIssueInsightProps) => { props.onHistogramButtonClick( props.insight.spanInfo.instrumentationLibrary, props.insight.spanInfo.name, - props.insight.type + props.insight.type, + props.insight.spanInfo.displayName ); }; diff --git a/src/components/Insights/ScalingIssueInsight/types.ts b/src/components/Insights/ScalingIssueInsight/types.ts index 20f79e385..42dec60b9 100644 --- a/src/components/Insights/ScalingIssueInsight/types.ts +++ b/src/components/Insights/ScalingIssueInsight/types.ts @@ -15,6 +15,7 @@ export interface ScalingIssueInsightProps extends InsightProps { onHistogramButtonClick: ( instrumentationLibrary: string, name: string, - insightType: InsightType + insightType: InsightType, + displayName: string ) => void; }