Instrumentation

Summary

This page describes how add instrumentation in Dendron.

Adding Telemetry

Use AnalyticUtils.track

Remember to follow the Checklist after adding telemetry.

Adding telemetry to a built-in VSCode command

There are some API's that permit command execution, but require you to specify the command with a string command URI. In these situations, you may want to add a marker for a built-in VS Code command. An example is that you want to track the number of times a user clicks on a TreeItem, and the clicking action calls the vscode.openLink command.

To add instrumentation in this scenario, use the InstrumentedWrapperCommand, which is a command that simply wraps another command and fires a telemetry marker.

Example Uses:


Children
  1. Checklist