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
x/tools/gopls: collect editor kind information with telemetry #61038
Comments
Change https://go.dev/cl/506635 mentions this issue: |
Perhaps it ought to be "gopls/client:{vscode,vscodium,eglot,...}", since it's logic in the LSP client, not the editor, that populates the field, and some editors (e.g. Emacs, Vim) have multiple clients. The editor name can be computed from the client name. |
Updated to "gopls/client:..." cc @jamalc |
LSP 3.15.0 added support for sending information about the client as part of the InitializeParams message. This change will make govim send it's name and version as a part of that message to gopls. Also see golang/go#61038.
These counters are incremented once per session when the LSP initialize message is received. This cl adds a new dependency on x/telemetry. Note that writing to the disk will be enabled when GOPLS_TELEMETRY_EXP is set. We plan to remove this condition once we are ready. Updates golang/go#61038 Change-Id: Ibb8ebbd039ab5ffbaa869dee01bee0ba5450f350 Reviewed-on: https://go-review.googlesource.com/c/tools/+/506635 Reviewed-by: Jamal Carvalho <jamal@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com> Reviewed-by: Robert Findley <rfindley@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Set clientInfo to allow telemetry to be used. Relates to golang/go#61038. ref: https://go-review.googlesource.com/c/tools/+/506635
add gopls/clietn:vscode-insiders perhaps? |
Why?
We want to utilize this information when prioritizing editor-specific specialization and features.
Does it carry sensitive user information?
No.
How?
Some LSP clients send the name of editor in the initialization message's ClientInfo field.
Increment the counter corresponding to the field's value.
note: The default is 'local' which does not send any data to the telemetry server. Users must opt-in explicitly.
cc @golang/tools-team
The text was updated successfully, but these errors were encountered: