Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust telemetry names for connect event #181

Merged
merged 2 commits into from May 20, 2020
Merged

Conversation

lrlna
Copy link
Contributor

@lrlna lrlna commented May 13, 2020

Description

As per @mmarcon's request, changing telemetry events to be snake_cased instead
of camelCased.

This PR also adds server_os and server_arch information to Connect event.

Copy link
Member

@mmarcon mmarcon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also change the event names to Title Case? Otherwise, I think Amplitude won't like them.
I think we can drop the mongosh: prefix because anyways they go into a bucket that only has mongosh events and then event names would be like Connect – or actually let's call it New Connection like in VS Code –, Update User, Help, etc.

Sorry for these annoying little tweaks.

is_genuine: true,
non_genuine_server_name: 'mongodb',
server_arch: 'x86_64',
server_os: 'osx',
uri: ATLAS_URI
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does URI look like? Something like this: mongodb+srv://<credentials>@cluster0-e06dc.azure.mongodb.net/test?authSource=admin&replicaSet=Cluster0-shard-0&readPreference=primary&ssl=true? Might be PII, not sure if we can collect it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, that's what it looks like. I do not send this to telemetry though, only to user's local log file

const log = pino({ name: 'monogsh' }, pino.destination(logDest));
console.log(`Current sessionID: ${sessionID}`);
let userId;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should stay userId

@lrlna lrlna requested a review from mmarcon May 14, 2020 17:17
@lrlna lrlna merged commit dfc252e into master May 20, 2020
@lrlna lrlna deleted the rename-telemetry-events branch May 20, 2020 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants