Skip to content

Commit

Permalink
Send remaining telemetry events coming from the language server.
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
  • Loading branch information
rgrunber committed Mar 3, 2023
1 parent efd52ad commit d765fa7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions USAGE_DATA.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ vscode-xml has opt-in telemetry collection, provided by [vscode-redhat-telemetry
* A telemetry event is sent every time you click on the link to the documentation that appears after the Java XML language server crashes due to an Out Of Memory Error.
* Text Document Information
* When a document is opened :
* The file extension (eg. `xml`, `xsd`, `dtd`)
* The file extension (eg. `xml`, `xsd`, `dtd`, `rng`)
* The associated grammar types (eg. `none`, `doctype`, `xml-model`, `xsi:schemaLocation`, `xsi:noNamespaceSchemaLocation`)
* The resolver used to resolve the grammar identifier (eg. `catalog`, `file association`, `embedded catalog.xsd`, `embedded xml.xsd`, `embedded xslt.xsd`)
* The grammar identifiers for an XML document (eg. `http://maven.apache.org/xsd/maven-4.0.0.xsd`)
* The resolver used to resolve the grammar identifier (eg. `catalog`, `file association`, `embedded catalog.xsd`, `embedded xml.xsd`, `embedded xslt.xsd`, `relaxng.rng`)

## What's included in the general telemetry data

Expand Down
2 changes: 2 additions & 0 deletions src/client/xmlClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export async function startLanguageClient(context: ExtensionContext, executable:
preferBinary: (getXMLConfiguration()['server']['preferBinary'] as boolean)
};
return Telemetry.sendTelemetry(Telemetry.STARTUP_EVT, e.properties);
} else {
return Telemetry.sendTelemetry(e.name, e.properties);
}
});

Expand Down

0 comments on commit d765fa7

Please sign in to comment.