Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 050a3bf

Browse files
authored
Include NR user ID on telemetry events for ide redirect pages (#427)
* Include NR user ID on telemetry events for ide redirect pages * Fix nr userId telemetry property in ide redirect apiweb pages
1 parent 2ac7293 commit 050a3bf

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

api_server/modules/web/newrelic_ide_redirect_request.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class NewRelicIdeRedirectRequest extends IdeRedirectRequest {
5555
queryString: { ide: this.parsedPayload?.ide === '' ? 'default' : this.parsedPayload?.ide },
5656
errorGroupGuid: this.parsedPayload.errorGroupGuid,
5757
itemGuid,
58+
nrUserId: this.parsedPayload.userId,
5859
newToCodeStream: launcherModel?.isMru ? "false" : "true",
5960
icons: {},
6061
partial_launcher_model: launcherModel,

api_server/modules/web/templates/ide_redirect.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"platform": "codestream",
3333
"path": "N/A (codestream)",
3434
"section": "N/A (codestream)",
35+
"userId": "{{nrUserId}}",
3536
"meta_data": "content: {{analyticsContentType}}",
3637
"meta_data_2": "source: {{src}}",
3738
"meta_data_3": "new_to_codestream: {{newToCodeStream}}",
@@ -53,7 +54,8 @@
5354
teamId: '{{teamId}}',
5455
teamName: '{{teamName}}',
5556
companyName: '{{companyName}}',
56-
isLink: '{{isLink}}'
57+
isLink: '{{isLink}}',
58+
nrUserId: '{{nrUserId}}'
5759
}
5860
}
5961
</script>

api_server/modules/web/templates/partial_launcher_detailed.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ window.CODESTREAM.openEditor = function(ide) {
474474
"platform": "codestream",
475475
"path": "N/A (codestream)",
476476
"section": "N/A (codestream)",
477+
"userId": options.nrUserId,
477478
"meta_data": `ide_detail: ${moniker}`,
478479
"meta_data_2": `selection_method: ${ideSelection}`,
479480
"meta_data_3": `source: ${source}`
@@ -489,6 +490,7 @@ window.CODESTREAM.openEditor = function(ide) {
489490
"platform": "codestream",
490491
"path": "N/A (codestream)",
491492
"section": "N/A (codestream)",
493+
"userId": options.nrUserId,
492494
"meta_data": `ide_detail: ${moniker}`,
493495
"meta_data_2": `selection_method: ${ideSelection}`,
494496
"meta_data_3": `source: ${source}`

0 commit comments

Comments
 (0)