Skip to content

Commit 3bfc669

Browse files
committed
Add metrics for custom OpenAPI spec usage
1 parent e68ad68 commit 3bfc669

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/settings/api-settings-card.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { Icon } from '../../icons';
1212
import { uploadFile } from '../../util/ui';
1313
import { attempt } from '../../util/promise';
1414
import { asError } from '../../util/error';
15+
import { trackEvent } from '../../metrics';
1516

1617
import { buildApiMetadataAsync } from '../../services/ui-worker-api';
1718

@@ -288,6 +289,7 @@ export class ApiSettingsCard extends React.Component<
288289
['http://' + baseUrl, 'https://' + baseUrl]
289290
);
290291
this.props.apiStore!.addCustomApi(baseUrl, api);
292+
trackEvent({ category: "Config", action: "Add API spec" });
291293

292294
this.enteredBaseUrl = "";
293295
this.selectedSpec = undefined;

0 commit comments

Comments
 (0)