简体   繁体   English

从 vscode 扩展收集数据

[英]collecting data from vscode extension

I am new to vscode extension development.我是 vscode 扩展开发的新手。 I have developed a vscode extension and havent published it.我已经开发了一个 vscode 扩展并且还没有发布它。 its for internal use and users would be using this extension from vsix file.它供内部使用,用户将使用 vsix 文件中的此扩展名。

I now want to collect usage data like - how many people are using this extension, what version of the extension, what version of node they are using etc.我现在想收集使用数据,例如 - 有多少人在使用此扩展、扩展的版本、他们使用的节点版本等。

how can i do that?我怎样才能做到这一点? i have looked into vscode telemetry but looks like that mostly sending data to microsoft.我已经研究过 vscode 遥测,但看起来主要是将数据发送到微软。

can the usage data be collected without publishing the plugin?可以在不发布插件的情况下收集使用数据吗? if so, how?如果是这样,如何? if not, can it be done if we publish?如果没有,如果我们发布可以做到吗? how?如何?

The new Extension Telemetry API has been finalized in v1.75:新的 Extension Telemetry API 已在 v1.75 中完成:

The new TelemetryLogger API has been finalized.新的TelemetryLogger API已经定型。 This API aims to make utilizing telemetry easier for the author and safer for the end user.此 API 旨在使作者更轻松地使用遥测技术,并使最终用户更安全。 The API enables things such as built-in secret cleaning, a telemetry output channel, error handlers, and automatic telemetry level management. API 启用诸如内置秘密清理、遥测 output 通道、错误处理程序和自动遥测级别管理等功能。 This allows for a more cohesive telemetry experience that is guaranteeed to follow our requirements.这允许保证符合我们要求的更具凝聚力的遥测体验。

from v1.73 Release Notes:从 v1.73 发行说明开始:

Extension Telemetry API分机遥测 API

To further drive telemetry best practices and enhance the telemetry features extensions have offered to them, this iteration introduces the proposed telemetryLogger API. This API allows extension to supply a TelemetryAppender which acts as the core sending logic (implemented utilizing Application Insights or another data recording service).为了进一步推动遥测最佳实践并增强扩展为他们提供的遥测功能,此迭代引入了建议的telemetryLogger API。此 API 允许扩展以提供充当核心发送逻辑的TelemetryAppender (利用Application Insights或其他数据记录服务实现) ). This TelemetryAppender is then used to instantiate a TelemetryLogger which is the class which you should log telemetry through.这个TelemetryAppender然后用于实例化一个TelemetryLogger ,它是 class,您应该通过它记录遥测。 The TelemetryLogger provides a shared output channel to see sent telemetry events, proper telemetry setting checks, and personally identifiable information cleaning. TelemetryLogger提供了一个共享的 output 通道来查看发送的遥测事件、正确的遥测设置检查和个人身份信息清理。 Additionally any errors thrown by utilizing the VS Code API will be logged to your appender for better error diagnostics.此外,使用 VS 代码 API 抛出的任何错误都将记录到您的附加程序中,以便更好地进行错误诊断。 A simple sample can be found here and feedback can be provided here可以在此处找到一个简单示例,也可以在此处提供反馈

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Vscode语言客户端扩展 - 如何从服务器向客户端发送消息? - Vscode Language Client extension - how to send a message from the server to the client? 如何从vscode扩展打开非集成终端window? - How to open non integrated terminal window from vscode extension? 从 Marketplace 安装时,VSCode 扩展找不到模块 - VSCode extension cannot find module when installed from Marketplace Dtrace没有为NodeJS收集任何数据 - Dtrace is not collecting any data for NodeJS NodeJs Mongoose循环收集数据 - NodeJs Mongoose collecting data in loop 自动驾驶仪和功能收集数据他 - Autopilot and Functions collecting data he 节点中的回调混淆和数据收集 - Callback Confusion and Collecting Data in Node Node js任务,收集数据,服务Web以及从Beaglebone发送数据 - Node js tasks, collecting data, serving web and sending data from beaglebone (node/express) 从数据库查询中收集多条数据并发送到 index.ejs? - (node/express) Collecting multiple pieces of data from database queries and sending to index.ejs? 从多个API(Websockets或http请求)收集数据时,预计会更快些吗? - What is expected to be faster when collecting data from multiple apis: websockets or http requests?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM