Closed oliversen closed 1 year ago
@microsoft-github-policy-service agree
TelemetryTrustedValue
would be a better use case for the sendRawTelemetryEvent
method, I can't believe I forgot about that :). I think what we should do instead is inside that method automatically map all the values into trusted ones and then send it off to the API, that way the consumer doesn't need to think about it but can still benefit from the common properties and output channel logging.
This has been fixed and imlemented
To send raw (unsanitized) data there is a special value wrapper TelemetryTrustedValue. Its use would be more correct instead of the
sendRawTelemetryEvent
method, which will only work iftelemetryLevel === "all"
, and data mixing will not occur with it (vscode will not add parameters such as OS, Platform Version, Extension Version, VS Code Version etc. to the telemetry data).Usage TelemetryTrustedValue: