diff --git a/packages/nodejs/.changesets/send-diagnose-report-with-correct-query-params.md b/packages/nodejs/.changesets/send-diagnose-report-with-correct-query-params.md new file mode 100644 index 00000000..37f28dec --- /dev/null +++ b/packages/nodejs/.changesets/send-diagnose-report-with-correct-query-params.md @@ -0,0 +1,5 @@ +--- +bump: "patch" +--- + +Send the diagnose report with correct query parameters to help link the report to the app and organization on AppSignal.com. diff --git a/packages/nodejs/src/diagnose.ts b/packages/nodejs/src/diagnose.ts index d6e63308..0708a54e 100644 --- a/packages/nodejs/src/diagnose.ts +++ b/packages/nodejs/src/diagnose.ts @@ -199,7 +199,12 @@ export class DiagnoseTool { const json = JSON.stringify({ diagnose: data }) const config = this.#config.data - const params = new URLSearchParams({ api_key: config["apiKey"] || "" }) + const params = new URLSearchParams({ + api_key: config["apiKey"] || "", + name: config["name"] || "", + environment: config["environment"] || "", + hostname: config["hostname"] || "" + }) const diagnoseEndpoint = process.env.APPSIGNAL_DIAGNOSE_ENDPOINT || "https://appsignal.com/diag" diff --git a/test/integration/diagnose b/test/integration/diagnose index 59979d0b..978a6c11 160000 --- a/test/integration/diagnose +++ b/test/integration/diagnose @@ -1 +1 @@ -Subproject commit 59979d0b25055f98b87536f1d48eb9ad8913baaf +Subproject commit 978a6c11196b60dca1b20ebeef2625bc841d1839