Skip to content

Commit 051323d

Browse files
committed
move log earlier
1 parent c832b30 commit 051323d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

packages/compass-connections/src/stores/connections-store-redux.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,6 +1792,17 @@ const connectWithOptions = (
17921792
);
17931793
}
17941794

1795+
// This is used for Data Explorer connection latency tracing
1796+
log.info(
1797+
mongoLogId(1_001_000_006),
1798+
'Compass Connection Attempt Succeeded',
1799+
'Connection attempt succeeded',
1800+
{
1801+
clusterName: connectionInfo.atlasMetadata?.clusterName,
1802+
connectionId: connectionInfo.id,
1803+
}
1804+
);
1805+
17951806
track(
17961807
'New Connection',
17971808
async () => {
@@ -1842,17 +1853,6 @@ const connectWithOptions = (
18421853
connectionInfo
18431854
);
18441855

1845-
// This is used for Data Explorer connection latency tracing
1846-
log.info(
1847-
mongoLogId(1_001_000_006),
1848-
'Compass Connection Attempt Succeeded',
1849-
'Connection attempt succeeded',
1850-
{
1851-
clusterName: connectionInfo.atlasMetadata?.clusterName,
1852-
connectionId: connectionInfo.id,
1853-
}
1854-
);
1855-
18561856
connectionProgress.openConnectionSucceededToast(connectionInfo);
18571857

18581858
// Emit before changing state because some plugins rely on this

0 commit comments

Comments
 (0)