Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/components/Admin/Home/Overview/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ export const WidgetsContainer = styled.div`
`;

export const OverviewWidgetPlaceholderImage = styled.img`
width: 279px;
height: 108px;
height: 122px;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ export const SpanPerformanceAnomalyInsightTicket = ({
The slowest 5% of this asset is{" "}
{roundTo(insight.slowerByPercentage, 2)}% slower than the median
</div>,
<span key={"p50duration"}>
Median duration: {getDurationString(insight.p50)}
</span>,
<span key={"p95duration"}>
5% duration: {getDurationString(insight.p95)}
</span>,
<>
<div key={"p50duration"}>
Median duration: {getDurationString(insight.p50)}
</div>
<div key={"p95duration"}>
5% duration: {getDurationString(insight.p95)}
</div>
</>,
<CodeLocations
key={"codeLocations"}
codeLocations={codeLocations}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { platform } from "../../../../../platform";
import { useLazyGetSpanPercentilesHistogramQuery } from "../../../../../redux/services/digma";
import { useConfigSelector } from "../../../../../store/config/useConfigSelector";
import { isString } from "../../../../../typeGuards/isString";
import { SCOPE_CHANGE_EVENTS } from "../../../../../types";
import { changeScope } from "../../../../../utils/actions/changeScope";
Expand Down Expand Up @@ -73,8 +72,6 @@ export const InsightCardRenderer = ({
tooltipBoundaryRef,
backendInfo
}: InsightCardRendererProps) => {
const { digmaApiProxyPrefix } = useConfigSelector();

const [triggerSpanPercentilesHistogramFetch] =
useLazyGetSpanPercentilesHistogramQuery();

Expand All @@ -84,11 +81,9 @@ export const InsightCardRenderer = ({
displayName: string,
environmentId: string
) => {
const digmaApiBaseUrl = `${window.location.origin}${
digmaApiProxyPrefix ?? "/api"
}`;

if (platform === "Web") {
const digmaApiBaseUrl = `${window.location.origin}/api`;

switch (insightType) {
case InsightType.SpanScaling: {
const url = getInsightHistogramUrl(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@ export const Default: Story = {
insight: mockedSpanPerformanceAnomalyInsight
}
};

export const WithoutTraces: Story = {
args: {
insight: {
...mockedSpanPerformanceAnomalyInsight,
p50TraceId: null,
p95TraceId: null
}
}
};
Loading