Skip to content

Commit 59ffbea

Browse files
authored
chore: remove Inisights timeline widget (#843)
1 parent 957e4f7 commit 59ffbea

21 files changed

Lines changed: 0 additions & 142 deletions

src/addedComponents/InsightsTimelineWidget/InsightsTimelineWidget.tsx

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/components/Explore/TracesByService/REDPanel.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ import { buildHistogramQuery } from '../queries/histogram';
4040
import { isEqual } from 'lodash';
4141
import { DurationComparisonControl } from './DurationComparisonControl';
4242
import { exemplarsTransformations, removeExemplarsTransformation } from '../../../utils/exemplars';
43-
import { useServiceName } from 'pages/Explore/TraceExploration';
4443
import { locationService } from '@grafana/runtime';
45-
import { InsightsTimelineWidget } from 'addedComponents/InsightsTimelineWidget/InsightsTimelineWidget';
4644
import { TIME_SEEKER_FEATURE_FLAG_KEY, useFlagTracesDrilldownTimeSeeker } from 'featureFlags/featureFlags';
4745
import { reportAppInteraction, USER_EVENTS_ACTIONS, USER_EVENTS_PAGES } from 'utils/analytics';
4846

@@ -270,8 +268,6 @@ export class REDPanel extends SceneObjectBase<RateMetricsPanelState> {
270268
const { value: metric } = getMetricVariable(model).useState();
271269
const traceExploration = getTraceExplorationScene(model);
272270
const styles = useStyles2(getStyles);
273-
const serviceName = useServiceName(model);
274-
const timeRange = sceneGraph.getTimeRange(model).useState();
275271
const { timeSeekerScene } = traceExploration.useState();
276272
const timeSeekerEnabled = useFlagTracesDrilldownTimeSeeker();
277273
const embedded = traceExploration.state.embedded === true;
@@ -351,14 +347,6 @@ export class REDPanel extends SceneObjectBase<RateMetricsPanelState> {
351347
)}
352348
{showTimeSeeker && timeSeekerScene != null && <timeSeekerScene.Component model={timeSeekerScene} />}
353349
<panel.Component model={panel} />
354-
{!embeddedMini && serviceName && (
355-
<InsightsTimelineWidget
356-
serviceName={serviceName}
357-
metric={metric as MetricFunction}
358-
startTime={String(timeRange.value.from.valueOf())}
359-
endTime={String(timeRange.value.to.valueOf())}
360-
/>
361-
)}
362350
</div>
363351
);
364352
};

src/locales/cs-CZ/grafana-exploretraces-app.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@
148148
"slow-services": "",
149149
"slow-traces": ""
150150
},
151-
"insights-timeline-widget": {
152-
"label": ""
153-
},
154151
"inspect-attribute-action": {
155152
"inspect": ""
156153
},

src/locales/de-DE/grafana-exploretraces-app.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@
146146
"slow-services": "",
147147
"slow-traces": ""
148148
},
149-
"insights-timeline-widget": {
150-
"label": ""
151-
},
152149
"inspect-attribute-action": {
153150
"inspect": ""
154151
},

src/locales/en-US/grafana-exploretraces-app.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@
115115
"include": "Include",
116116
"title": "Highest difference"
117117
},
118-
"insights-timeline-widget": {
119-
"label": "Insights"
120-
},
121118
"inspect-attribute-action": {
122119
"inspect": "Inspect"
123120
},

src/locales/es-ES/grafana-exploretraces-app.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@
146146
"slow-services": "",
147147
"slow-traces": ""
148148
},
149-
"insights-timeline-widget": {
150-
"label": ""
151-
},
152149
"inspect-attribute-action": {
153150
"inspect": ""
154151
},

src/locales/fr-FR/grafana-exploretraces-app.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@
146146
"slow-services": "",
147147
"slow-traces": ""
148148
},
149-
"insights-timeline-widget": {
150-
"label": ""
151-
},
152149
"inspect-attribute-action": {
153150
"inspect": ""
154151
},

src/locales/hu-HU/grafana-exploretraces-app.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@
146146
"slow-services": "",
147147
"slow-traces": ""
148148
},
149-
"insights-timeline-widget": {
150-
"label": ""
151-
},
152149
"inspect-attribute-action": {
153150
"inspect": ""
154151
},

src/locales/id-ID/grafana-exploretraces-app.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@
145145
"slow-services": "",
146146
"slow-traces": ""
147147
},
148-
"insights-timeline-widget": {
149-
"label": ""
150-
},
151148
"inspect-attribute-action": {
152149
"inspect": ""
153150
},

src/locales/it-IT/grafana-exploretraces-app.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@
146146
"slow-services": "",
147147
"slow-traces": ""
148148
},
149-
"insights-timeline-widget": {
150-
"label": ""
151-
},
152149
"inspect-attribute-action": {
153150
"inspect": ""
154151
},

0 commit comments

Comments
 (0)