From fbea22cd6f3a1e9d4c6e1b29446ee772025b6a0c Mon Sep 17 00:00:00 2001 From: Tom de Bruijn Date: Tue, 26 Oct 2021 16:49:24 +0200 Subject: [PATCH] Fix agent diagnose report key The report key is `agent`, not `extension`. This mean that the Node.js diagnose report on the server always reported this section as missing, but it was just under a different key. --- packages/nodejs/.changesets/send-agent-diagnose-report.md | 5 +++++ packages/nodejs/src/diagnose.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 packages/nodejs/.changesets/send-agent-diagnose-report.md diff --git a/packages/nodejs/.changesets/send-agent-diagnose-report.md b/packages/nodejs/.changesets/send-agent-diagnose-report.md new file mode 100644 index 00000000..2c94bce5 --- /dev/null +++ b/packages/nodejs/.changesets/send-agent-diagnose-report.md @@ -0,0 +1,5 @@ +--- +bump: "patch" +--- + +Fix sending the agent diagnose report with all reports. It was sent, but with the wrong key, which made our server side validator report it as missing. diff --git a/packages/nodejs/src/diagnose.ts b/packages/nodejs/src/diagnose.ts index faaed1c1..f5f47d5e 100644 --- a/packages/nodejs/src/diagnose.ts +++ b/packages/nodejs/src/diagnose.ts @@ -51,7 +51,7 @@ export class DiagnoseTool { installation: this.getInstallationReport(), host: this.getHostData(), app: {}, - extension: this.#extension.diagnose(), + agent: this.#extension.diagnose(), config: { options: this.getConfigData(), sources: {}