Skip to content

Commit

Permalink
Remove unused imports and logs
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianQuispel committed May 2, 2024
1 parent 5305ddc commit 20c2749
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { handleServiceMapRequest } from '../../../trace_analytics/requests/servi
import { AppAnalyticsComponentDeps } from '../../home';
import { OptionType } from '../../../../../common/types/application_analytics';
import { getClearModal } from '../../helpers/modal_containers';
import { tenantName } from '../../../../components/trace_analytics/components/common/indices';

interface ServiceConfigProps extends AppAnalyticsComponentDeps {
dslService: DSLService;
Expand All @@ -40,6 +39,7 @@ export const ServiceConfig = (props: ServiceConfigProps) => {
http,
selectedServices,
setSelectedServices,
tenant,
} = props;
const { mode } = props;
const [servicesOpen, setServicesOpen] = useState(false);
Expand All @@ -51,7 +51,7 @@ export const ServiceConfig = (props: ServiceConfigProps) => {
const [modalLayout, setModalLayout] = useState(<EuiOverlayMask />);

useEffect(() => {
handleServiceMapRequest(http, dslService, mode, setServiceMap, undefined, tenantName);
handleServiceMapRequest(http, dslService, mode, setServiceMap, undefined, tenant);
}, []);

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import { ServiceObject } from '../../../../../public/components/trace_analytics/
import { SpanDetailTable } from '../../../../../public/components/trace_analytics/components/traces/span_detail_table';
import { TraceAnalyticsComponentDeps } from '../../../../../public/components/trace_analytics/home';
import { getListItem } from '../../helpers/utils';
import { tenantName } from '../../../../components/trace_analytics/components/common/indices';

interface ServiceFlyoutProps extends TraceAnalyticsComponentDeps {
serviceName: string;
Expand All @@ -49,6 +48,7 @@ export function ServiceDetailFlyout(props: ServiceFlyoutProps) {
closeServiceFlyout,
openSpanFlyout,
mode,
tenant,
} = props;
const [fields, setFields] = useState<any>({});
const [serviceMap, setServiceMap] = useState<ServiceObject>({});
Expand Down Expand Up @@ -132,7 +132,7 @@ export function ServiceDetailFlyout(props: ServiceFlyoutProps) {
appConfigs
);
handleServiceViewRequest(serviceName, http, serviceDSL, setFields, mode);
handleServiceMapRequest(http, serviceDSL, mode, setServiceMap, serviceName, tenantName);
handleServiceMapRequest(http, serviceDSL, mode, setServiceMap, serviceName, tenant);
const spanDSL = filtersToDsl(mode, filters, query, startTime, endTime, 'app', appConfigs);
spanDSL.query.bool.must.push({
term: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ export function TraceView(props: TraceViewProps) {
processTimeStamp('now', mode),
page
);
console.log('tenant', tenant);
handleTraceViewRequest(props.traceId, props.http, fields, setFields, mode, tenant);
handlePayloadRequest(props.traceId, props.http, payloadData, setPayloadData, mode, tenant);
handleServicesPieChartRequest(
Expand Down

0 comments on commit 20c2749

Please sign in to comment.