Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <github@ysh.us>
  • Loading branch information
yurishkuro committed Aug 22, 2023
1 parent 10ca4c7 commit 7372d34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/jaeger-ui/src/utils/tracking/ga.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const GA: IWebAnalyticsFunc = (config: Config, versionShort: string, versionLong
msg = `jaeger/${msg}`;
}
msg = msg.slice(0, 149);
ReactGA.send({hitType: "exception", description: msg, fatal: false});
ReactGA.send({ hitType: 'exception', description: msg, fatal: false });
if (isDebugMode) {
logTrackingCalls();
}
Expand Down Expand Up @@ -152,7 +152,7 @@ const GA: IWebAnalyticsFunc = (config: Config, versionShort: string, versionLong

const trackPageView = (pathname: string, search: string | TNil) => {
const pagePath = search ? `${pathname}${search}` : pathname;
ReactGA.send({hitType: "pageview", path: pagePath});
ReactGA.send({ hitType: 'pageview', path: pagePath });
if (isDebugMode) {
logTrackingCalls();
}
Expand Down
2 changes: 1 addition & 1 deletion packages/jaeger-ui/src/utils/tracking/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import ReactGA from 'react-ga4';
export const logTrackingCalls = () => {
const originalSend = ReactGA.send;
const calls: any[] = [];

ReactGA.send = (...args) => {
calls.push(args);
originalSend(...args);
Expand Down

0 comments on commit 7372d34

Please sign in to comment.