Skip to content

Commit faca2d7

Browse files
committed
chore(cli-repl): don't send api-call events to segment
1 parent 5684214 commit faca2d7

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

packages/cli-repl/src/logger.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -158,20 +158,5 @@ export default function logger(bus: any, logDir: string): void {
158158

159159
bus.on('mongosh:api-call', function(args: ApiEvent) {
160160
log.info('mongosh:api-call', redactInfo(args));
161-
162-
// analytics properties to include if they are present in an api-call
163-
const properties: ApiEvent = {};
164-
properties.arguments = {};
165-
if (args.method) properties.method = args.method;
166-
if (args.class) properties.class = args.class;
167-
if (args.arguments) properties.arguments = properties.arguments;
168-
169-
if (telemetry) {
170-
analytics.track({
171-
userId,
172-
event: 'Api Call',
173-
properties: redactInfo(properties)
174-
});
175-
}
176161
});
177162
}

0 commit comments

Comments
 (0)