Record success metric for adb client start
Summary: We've seen some flakiness here, so adding this to get better visibility on it. Reviewed By: passy Differential Revision: D13635051 fbshipit-source-id: 98d2dcc0bb11f3afb2f27942b9f4bf241808a4fc
This commit is contained in:
committed by
Facebook Github Bot
parent
90de3c6868
commit
f85dc14d07
@@ -12,6 +12,7 @@ import type {Store} from '../reducers/index.js';
|
|||||||
import type BaseDevice from '../devices/BaseDevice';
|
import type BaseDevice from '../devices/BaseDevice';
|
||||||
import type Logger from '../fb-stubs/Logger.js';
|
import type Logger from '../fb-stubs/Logger.js';
|
||||||
import {registerDeviceCallbackOnPlugins} from '../utils/onRegisterDevice.js';
|
import {registerDeviceCallbackOnPlugins} from '../utils/onRegisterDevice.js';
|
||||||
|
import {recordSuccessMetric} from '../utils/metrics';
|
||||||
const adb = require('adbkit-fb');
|
const adb = require('adbkit-fb');
|
||||||
|
|
||||||
function createDevice(adbClient, device): Promise<AndroidDevice> {
|
function createDevice(adbClient, device): Promise<AndroidDevice> {
|
||||||
@@ -80,7 +81,11 @@ export default (store: Store, logger: Logger) => {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const clientPromise = createClient();
|
const clientPromise = recordSuccessMetric(
|
||||||
|
createClient(),
|
||||||
|
'createADBClient',
|
||||||
|
logger,
|
||||||
|
);
|
||||||
|
|
||||||
const watchAndroidDevices = () => {
|
const watchAndroidDevices = () => {
|
||||||
// get emulators
|
// get emulators
|
||||||
|
|||||||
Reference in New Issue
Block a user