@@ -40,9 +40,7 @@ import { buildHistogramQuery } from '../queries/histogram';
4040import { isEqual } from 'lodash' ;
4141import { DurationComparisonControl } from './DurationComparisonControl' ;
4242import { exemplarsTransformations , removeExemplarsTransformation } from '../../../utils/exemplars' ;
43- import { useServiceName } from 'pages/Explore/TraceExploration' ;
4443import { locationService } from '@grafana/runtime' ;
45- import { InsightsTimelineWidget } from 'addedComponents/InsightsTimelineWidget/InsightsTimelineWidget' ;
4644import { TIME_SEEKER_FEATURE_FLAG_KEY , useFlagTracesDrilldownTimeSeeker } from 'featureFlags/featureFlags' ;
4745import { 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 } ;
0 commit comments