diff --git a/src/state/transactions/updater.tsx b/src/state/transactions/updater.tsx index 732b5580cf..4ddaa277e6 100644 --- a/src/state/transactions/updater.tsx +++ b/src/state/transactions/updater.tsx @@ -75,6 +75,7 @@ export default function Updater() { sendAnalyticsEvent(SwapEventName.SWAP_TRANSACTION_COMPLETED, { // if timeToSwap was already set, we already logged this session time_to_swap: hasReportedTimeToSwap ? undefined : elapsedTime, + chainId, hash, ...analyticsContext, }) diff --git a/src/tracing/index.ts b/src/tracing/index.ts index 13cd241b7d..3361eeaed7 100644 --- a/src/tracing/index.ts +++ b/src/tracing/index.ts @@ -4,7 +4,7 @@ import * as Sentry from '@sentry/react' import { BrowserTracing } from '@sentry/tracing' import { SharedEventName } from '@uniswap/analytics-events' import { initializeAnalytics, OriginApplication } from 'analytics' -import { isSentryEnabled } from 'utils/env' +import { isDevelopmentEnv, isSentryEnabled } from 'utils/env' import { getEnvName, isProductionEnv } from 'utils/env' import { v4 as uuidv4 } from 'uuid' @@ -46,4 +46,5 @@ initializeAnalytics(AMPLITUDE_DUMMY_KEY, OriginApplication.INTERFACE, { defaultEventName: SharedEventName.PAGE_VIEWED, commitHash: process.env.REACT_APP_GIT_COMMIT_HASH, isProductionEnv: isProductionEnv(), + debug: isDevelopmentEnv(), })