@@ -15,7 +15,6 @@ import { fromQuery, toQuery } from '../../../shared/Links/url_helpers';
1515import { TransactionMetadata } from '../../../shared/MetadataTable/TransactionMetadata' ;
1616import { WaterfallContainer } from './WaterfallContainer' ;
1717import { IWaterfall } from './WaterfallContainer/Waterfall/waterfall_helpers/waterfall_helpers' ;
18- import { LogStream } from '../../../../../../infra/public' ;
1918
2019const timelineTab = {
2120 key : 'timeline' ,
@@ -31,13 +30,6 @@ const metadataTab = {
3130 } ) ,
3231} ;
3332
34- const logsTab = {
35- key : 'logs' ,
36- label : i18n . translate ( 'xpack.apm.propertiesTable.tabs.logsLabel' , {
37- defaultMessage : 'Logs' ,
38- } ) ,
39- } ;
40-
4133interface Props {
4234 location : Location ;
4335 transaction : Transaction ;
@@ -54,9 +46,9 @@ export function TransactionTabs({
5446 exceedsMax,
5547} : Props ) {
5648 const history = useHistory ( ) ;
57- const tabs = [ timelineTab , metadataTab , logsTab ] ;
49+ const tabs = [ timelineTab , metadataTab ] ;
5850 const currentTab =
59- tabs . find ( ( tab ) => tab . key === urlParams . detailTab ) ?? timelineTab ;
51+ urlParams . detailTab === metadataTab . key ? metadataTab : timelineTab ;
6052
6153 return (
6254 < React . Fragment >
@@ -91,14 +83,6 @@ export function TransactionTabs({
9183 waterfall = { waterfall }
9284 exceedsMax = { exceedsMax }
9385 />
94- ) : currentTab . key === logsTab . key ? (
95- < div >
96- < LogStream
97- startTimestamp = { Date . now ( ) - 86400000 }
98- endTimestamp = { Date . now ( ) }
99- query = { `trace.id: "${ urlParams . traceId } " OR "${ urlParams . traceId } "` }
100- />
101- </ div >
10286 ) : (
10387 < TransactionMetadata transaction = { transaction } />
10488 ) }
0 commit comments