Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Modify telemetry to contain trigger time as property #22941
Modify telemetry to contain trigger time as property #22941
Changes from 3 commits
d38561e
7020d70
f7454cf
026554a
86e1de0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be tricky to make
isFirstSession
a property of this event? 🙈 if it is nvm, this works well. It'd just simplify the metric creationThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mentioned it to Courtney but My reason for adding FIRST_SESSION as a separate telemetry, rather than including it in EDITOR_LOAD is that EDITOR_LOAD will be sent every session, as opposed to FIRST_SESSION, so I figured we might be saving some bandwidth.
But I can add it to EDITOR_LOAD if that's preferred, just let me know :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Luciana mentioned it might be easier to create/filter metrics if this was a property in the
editor_load
andtrigger_time
events so if it is the first session we can queryfirstSession = True
or something like that in those events.I guess how difficult would it be to add as a property? If it would be a significant lift we can still work with it as designed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem, I've added it as part of EDITOR_LOAD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should also add it to the
language_server_trigger_time
event as well so we can compare that startup time on first session too.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That'd be a bit tough, to pass that info all the way down to where
language_server_trigger_time
is sent. The way I'm thinking is that we filter the first session out using editor load for which we check the value oflanguage_server_trigger_time
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also passed as a Measure. We could remove this later so long as it shows up correctly as a Measure since Properties as stored as strings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this name being changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on discussion with Courtney offline, it was mentioned that due to a bug the classification may have went to the wrong property bag Property<->Measures, hence changing name to avoid confusion and start afresh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spoke with Luciana and it seems like this should be
language_server.trigger_duration
to match the constant set invscode-python/src/client/telemetry/constants.ts
Line 67 in 75ed73e
might not be the main problem but could be contributing. Looks like with your changes it is correct based on the name change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, my new telemetry name matches it. You mentioned:
Based on which I changed the telemetry name. I think we should avoid using
.
so confusion like this does not happen in the future.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the classification was addressed more so by adding
"isMeasurement": true
in the last PR. All that to say it looks like the changes you made in addition to the name change would address some of the other potential issues. We can try this!