This repository was archived by the owner on Nov 14, 2023. It is now read-only.
forked from hypertrace/hypertrace-ui
-
Notifications
You must be signed in to change notification settings - Fork 2
RudderStack Analytics Integration with HyperTrace #27
Merged
Merged
Changes from all commits
Commits
Show all changes
274 commits
Select commit
Hold shift + click to select a range
bba10d4
feat: hide header divider line when in detail list mode (#1246)
jake-bassett 586da92
feat: add additional specification array to entity spec (#1247)
anandtiwary 0d793a2
fix: make explorer content scrollable (#1248)
aaron-steinfeld 0eff64f
feat: import filter url service (#1251)
palbizu a9293f3
fix: make divider 1px high (#1253)
jake-bassett b1d8250
refactor: breadcrumb to support additional specifications (#1254)
anandtiwary e9cdabe
feat: persist explorer state in url (#1257)
aaron-steinfeld 756d8f4
chore:(deps): bump core-js from 3.19.0 to 3.19.1 (#1261)
dependabot[bot] 2f4c2b3
chore:(deps-dev): bump @commitlint/config-conventional (#1260)
dependabot[bot] 6bc351d
chore:(deps): bump mixpanel-browser from 2.41.0 to 2.42.0 (#1259)
dependabot[bot] 5ee7d10
chore:(deps): bump @apollo/client from 3.4.16 to 3.4.17 (#1263)
dependabot[bot] 7013af5
feat: Adding properties to Title Content (#1235)
palbizu 3cc0402
fix: common project should not depend on components project (#1264)
arjunlalb c601819
fix: upgrade graphql from 15.6.1 to 15.7.0 (#1266)
snyk-bot 21247f9
feat: adding loading config functionality to table view toggle widget…
itssharmasandeep 6803f3b
Table use local storage for columns (#1265)
jake-bassett 612c72a
fix: avoid dupe columns, clear group name from url on none (#1269)
aaron-steinfeld e14d879
feat: util methods to manipulate graphqlTimeRange (#1271)
arjunlalb 011cda2
chore:(deps-dev): bump husky from 7.0.1 to 7.0.4 (#1276)
dependabot[bot] b9eefdb
chore:(deps-dev): bump @commitlint/cli from 13.1.0 to 15.0.0 (#1274)
dependabot[bot] 0236f33
chore:(deps-dev): bump ts-node from 10.2.1 to 10.4.0 (#1277)
dependabot[bot] 6908d7f
fix: upgrade graphql from 15.7.0 to 15.7.2 (#1280)
snyk-bot 965c0c2
fix: new style for title in titled content (#1283)
arjunlalb f042275
fix: emit correct shape for single select change (#1284)
aaron-steinfeld 70f6e9a
feat: change default visualization for spans to count (#1272)
aaron-steinfeld b35921e
feat: add styling to table filters with applied values (#1285)
jake-bassett 11f2a78
fix: support for custom row size for table (#1286)
arjunlalb dd933a7
chore:(deps-dev): bump @types/node from 16.7.10 to 16.11.10 (#1289)
dependabot[bot] 7870e97
chore:(deps-dev): bump jest-config from 27.3.1 to 27.4.0 (#1292)
dependabot[bot] aa91526
chore:(deps): bump @apollo/client from 3.4.17 to 3.5.5 (#1291)
dependabot[bot] 342deb3
Form changes (#1281)
anandtiwary 8509f36
feat: persisted expand collapse for explorer panels (#1295)
itssharmasandeep f46c9d8
feat: toggle able legend for cartesian chart (#1270)
itssharmasandeep 644d6f2
feat: table filters now always show their placeholder even when a sel…
jake-bassett 037d46a
feat: add row highlighting to table selections (#1300)
jake-bassett 9edaeff
feat: support styles for text-widget primary text (#1301)
arjunlalb 2a1f846
chore:(deps-dev): bump jest-config from 27.4.0 to 27.4.3 (#1304)
dependabot[bot] f4acb1a
chore:(deps): bump core-js from 3.19.1 to 3.19.3 (#1307)
dependabot[bot] bb43344
chore:(deps-dev): bump @commitlint/config-conventional (#1306)
dependabot[bot] c318185
feat: exporting field and active tab label change (#1309)
anandtiwary 560f339
feat: support for custom row height in table widget (#1310)
arjunlalb 9df5db8
feat: list view changes (#1302)
anandtiwary 3381f26
fix: make border configurable in form field (#1311)
anandtiwary beb707f
fix: minor style changes to list view and multi select (#1312)
anandtiwary aff92e4
refactor: making radio forms compatible with forms (#1314)
anandtiwary 2c0f8ab
Fix date picker timezone issue (#1313)
adisreyaj b654927
chore:(deps-dev): bump jest-config from 27.4.3 to 27.4.4 (#1317)
dependabot[bot] bff6f9f
chore:(deps-dev): bump pretty-quick from 3.1.1 to 3.1.2 (#1320)
dependabot[bot] f88e986
chore:(deps-dev): bump @types/node from 16.11.10 to 16.11.12 (#1319)
dependabot[bot] 70291d9
chore:(deps-dev): bump @ngneat/spectator from 8.3.1 to 8.3.2 (#1318)
dependabot[bot] f850718
fix: setting max-height for multi select options container (#1315)
arjunlalb 5456802
fix: pull applied filter logic into table controls so consumer doesn'…
jake-bassett ecc635f
feat: adding color picker component (#1325)
anandtiwary a4c2803
feat: Combo box forms (#1327)
anandtiwary bc9ed82
feat: grouped cartesian legend (#1288)
itssharmasandeep fc10939
chore:(deps-dev): bump @types/d3-scale from 2.2.4 to 2.2.6 (#1332)
dependabot[bot] f7825cd
chore:(deps-dev): bump @types/node from 16.11.12 to 17.0.1 (#1331)
dependabot[bot] 2d065fa
chore:(deps): bump graphql from 15.7.2 to 15.8.0 (#1328)
dependabot[bot] 4f377bb
chore:(deps-dev): bump ng-mocks from 12.5.0 to 12.5.1 (#1329)
dependabot[bot] d5c638b
fix: grouped legend bug (#1334)
itssharmasandeep 71a0f52
feat: disabled state for input component reactive forms (#1333)
itssharmasandeep 7e4ce91
refactor: minor style change support for combo box (#1336)
anandtiwary 6c0ae0e
chore:(deps-dev): bump jest-html-reporter from 3.4.1 to 3.4.2 (#1338)
dependabot[bot] f9e4b80
chore:(deps): bump core-js from 3.19.3 to 3.20.1 (#1339)
dependabot[bot] d49ae58
chore:(deps): bump mixpanel-browser from 2.42.0 to 2.42.1 (#1340)
dependabot[bot] 3c0531e
chore:(deps-dev): bump @types/node from 17.0.1 to 17.0.5 (#1342)
dependabot[bot] e22d5cd
chore:(deps-dev): bump @commitlint/cli from 15.0.0 to 16.0.1 (#1345)
dependabot[bot] d87f4bd
chore:(deps-dev): bump @types/jest from 26.0.24 to 27.4.0 (#1346)
dependabot[bot] 05ffcff
chore:(deps-dev): bump @compodoc/compodoc from 1.1.15 to 1.1.16 (#1348)
dependabot[bot] 180e753
fix: corrected nested styling for `titled-content` (#1350)
jaywalker21 f7d76eb
feat: toISOString Time function (#1351)
palbizu 2388474
Adding inputs to time picker (#1343)
palbizu a2c70ee
fix: prevent empty like clause for search parameters (#1353)
jaywalker21 8817a28
feat: datetime picker as form field (#1352)
itssharmasandeep ef2ab88
feat: add alignment customization for page header content (#1355)
arjunlalb ceb9659
feat: add option to configure create option label (#1356)
anandtiwary f51440a
feat: providing functionality to use else template in if feature dire…
itssharmasandeep d8dc052
chore:(deps): bump @apollo/client from 3.5.5 to 3.5.6 (#1361)
dependabot[bot] 148f1db
chore:(deps): bump core-js from 3.20.1 to 3.20.2 (#1362)
dependabot[bot] f15643a
chore:(deps-dev): bump @commitlint/config-conventional (#1360)
dependabot[bot] 6324e9a
chore:(deps-dev): bump jest-config from 27.4.4 to 27.4.7 (#1359)
dependabot[bot] 27be34d
chore:(deps-dev): bump @types/mixpanel-browser from 2.35.7 to 2.36.0 …
dependabot[bot] ef8a9fb
fix: Fixing Time picker comparison time in dropdown (#1364)
palbizu 5600821
feat: adding request options to graphql data source (#1220)
anandtiwary 71613e7
feat: entity icon color (#1365)
itssharmasandeep 7a15cd4
style: add overflow for navigation list (#1366)
adisreyaj b13e322
refactor: add blue 6 (#1370)
anandtiwary c3baf8f
style(navigation): update overflow styles (#1371)
adisreyaj 90b7cba
Attribute expressions (#1367)
aaron-steinfeld 77c79e5
Explorer subpath support (#1368)
aaron-steinfeld a06a910
Explorer groupby subpath support (#1369)
aaron-steinfeld cc99f03
refactor: adding filters to data source (#1372)
anandtiwary 88eae15
feat: support for configurable max height in multi select container (…
arjunlalb 1d2238e
chore:(deps): bump @fullstory/browser from 1.4.9 to 1.4.10 (#1376)
dependabot[bot] 6ce1fe4
chore:(deps-dev): bump @compodoc/compodoc from 1.1.16 to 1.1.18 (#1377)
dependabot[bot] d11c790
chore:(deps-dev): bump @types/uuid from 8.3.1 to 8.3.4 (#1379)
dependabot[bot] 255bb62
chore:(deps): bump mixpanel-browser from 2.42.1 to 2.43.0 (#1380)
dependabot[bot] ee5c8e1
chore:(deps-dev): bump pretty-quick from 3.1.2 to 3.1.3 (#1378)
dependabot[bot] f640c1a
fix: parser should only match full filter keys (#1383)
aaron-steinfeld f9af505
feat: adding an attachedTrigger with sheet overlay (#1382)
anandtiwary 150d5eb
feat: Skeleton loader for LoadAsync directive (#1373)
Christian862 2ea76f4
feat: show y Axis and corresponding grid lines for Metrics tab in Ser…
jaywalker21 0cf08db
chore:(deps): bump @apollo/client from 3.5.6 to 3.5.7 (#1390)
dependabot[bot] a1fd906
chore:(deps): bump core-js from 3.20.2 to 3.20.3 (#1386)
dependabot[bot] e0ec49b
chore:(deps-dev): bump ng-mocks from 12.5.1 to 13.0.0 (#1388)
dependabot[bot] 5b55fc4
chore:(deps-dev): bump @types/node from 17.0.5 to 17.0.10 (#1389)
dependabot[bot] 2b18510
chore:(deps-dev): bump @commitlint/cli from 16.0.1 to 16.1.0 (#1387)
dependabot[bot] 4b09cac
refactor: updating style of single bar gauge (#1392)
anandtiwary f25dc77
feat: Adding state disable to dropdown (#1385)
palbizu fc90cc3
Cartesian drilldown (#1394)
jyothishjose6190 504e61c
feat: Add formControl disabled to combo-box (#1395)
palbizu f3a4abf
refactor: updating style for container widget as per the mocks (#1397)
anandtiwary 09ff2dd
fix(copy-to-clipboard): remove backdrop for tooltip message (#1391)
adisreyaj 251604e
refactor: hide tooltip (#1396)
anandtiwary a907ecb
refactor: minor styling changes to shared components (#1399)
anandtiwary 3562d56
fix: updated menu dropdown elements to body-1-regular styling. (#1401)
Greedy-Geek 7a90837
chore:(deps): bump @apollo/client from 3.5.7 to 3.5.8 (#1402)
dependabot[bot] 25cad06
chore:(deps-dev): bump @types/node from 17.0.10 to 17.0.13 (#1403)
dependabot[bot] 634ae8f
ci: update codecov (#1405)
aaron-steinfeld 3e9ee77
fix: checkbox on write refresh (#1404)
palbizu 221f617
fix(bug): brush should not be there for cartesian chart if there is n…
itssharmasandeep 3270abe
feat: add minor multiselect improvements (#1412)
aaron-steinfeld e584872
chore:(deps-dev): bump ng-mocks from 13.0.0 to 13.0.2 (#1415)
dependabot[bot] 8675775
chore:(deps-dev): bump @types/node from 17.0.13 to 17.0.15 (#1416)
dependabot[bot] 834c29f
chore:(deps-dev): bump jest-config from 27.4.7 to 27.5.0 (#1414)
dependabot[bot] 614b417
chore:(deps): bump @fullstory/browser from 1.4.10 to 1.5.0 (#1417)
dependabot[bot] 9bede0d
chore:(deps-dev): bump ts-node from 10.4.0 to 10.5.0 (#1421)
dependabot[bot] 8da01c8
chore:(deps-dev): bump @types/lodash-es from 4.17.5 to 4.17.6 (#1419)
dependabot[bot] a77ef33
chore:(deps-dev): bump @types/mixpanel-browser from 2.36.0 to 2.38.0 …
dependabot[bot] 216c057
chore:(deps): bump core-js from 3.20.3 to 3.21.0 (#1418)
dependabot[bot] f9fa1e4
feat(navigable-tab): add change detection trigger (#1410)
adisreyaj 586c139
feat(ui): added summary-box to consolidate +x usecases (#1407)
23nobody fcefa97
feat(validators): add domain validator (#1409)
adisreyaj bbb009b
feat: collapsible sidebar (#1423)
itssharmasandeep c566247
refactor(time): remove 2 week & 1 month options (#1424)
Christian862 05664a8
chore:(deps-dev): bump @commitlint/config-conventional (#1427)
dependabot[bot] b5d778c
chore:(deps-dev): bump @commitlint/cli from 16.1.0 to 16.2.1 (#1428)
dependabot[bot] 10b5668
chore:(deps-dev): bump jest-config from 27.5.0 to 27.5.1 (#1430)
dependabot[bot] d2be5f5
chore:(deps-dev): bump @types/node from 17.0.15 to 17.0.17 (#1429)
dependabot[bot] a4de300
feat(entity-renderer): ability to override icon size (#1426)
adisreyaj 46173bf
fix(input): reset on input component not working fix (#1433)
adisreyaj a4c299c
Make Traces editable columns filterable for all data types that suppo…
jake-bassett 5084896
fix: improve query error console messaging (#1435)
jake-bassett edcced1
feat: i-frame component created (#1408)
jyothishjose6190 b8fc4dc
I frame widget created (#1436)
jyothishjose6190 cd92c76
fix(ui): centered toggle switch vertically (#1413)
23nobody 9026efa
feat: table sort change output (#1438)
itssharmasandeep 3bc4a6e
feat: filter changes (#1422)
anandtiwary 5b04a42
style(table): remove border bottom for the last row (#1425)
adisreyaj 972dd16
Feat/checkbox control value accessor (#1432)
adisreyaj dead5c4
Feat/toggle switch control value accessor (#1440)
adisreyaj 6ef6bd0
chore:(deps): bump @apollo/client from 3.5.8 to 3.5.9 (#1443)
dependabot[bot] ef062c5
chore:(deps): bump core-js from 3.21.0 to 3.21.1 (#1446)
dependabot[bot] cc4dee0
chore:(deps): bump mixpanel-browser from 2.43.0 to 2.45.0 (#1444)
dependabot[bot] 0b4b826
chore:(deps-dev): bump ng-mocks from 13.0.2 to 13.0.3 (#1445)
dependabot[bot] 9af4573
chore:(deps-dev): bump @types/node from 17.0.17 to 17.0.19 (#1449)
dependabot[bot] d9a207b
feat: prefix icon for label tag component (#1450)
itssharmasandeep c35dedf
feat: Adding boolean to inactive isOverMaxBorder (#1448)
palbizu d2cea35
feat: Adding date formatter (#1447)
palbizu 80fcc29
refactor: styling changes on select and multi select (#1439)
anandtiwary 728596a
refactor: minor styling changes (#1452)
anandtiwary 46c423d
fix(group-by): fixing error while changing the group by from a key to…
itssharmasandeep 7ab34d7
refactor: minor style changes (#1455)
anandtiwary fc2085b
style(ui): added new color (#1456)
23nobody c6a5fb0
chore:(deps-dev): bump @compodoc/compodoc from 1.1.18 to 1.1.19 (#1457)
dependabot[bot] f051808
chore:(deps-dev): bump @types/jest from 27.4.0 to 27.4.1 (#1458)
dependabot[bot] a6905d9
chore:(deps-dev): bump ng-mocks from 13.0.3 to 13.0.4 (#1459)
dependabot[bot] 781126b
chore:(deps): bump @fullstory/browser from 1.5.0 to 1.5.1 (#1461)
dependabot[bot] 404794d
chore:(deps-dev): bump @types/node from 17.0.19 to 17.0.21 (#1460)
dependabot[bot] 60bdd98
feat: add full month and year formatter (#1462)
palbizu c79f5b7
refactor: adding types to sortedColumn (#1466)
anandtiwary 1a2fd55
fix: control value accessor error in checkbox and toggle (#1467)
adisreyaj c256074
chore:(deps): bump @apollo/client from 3.5.9 to 3.5.10 (#1472)
dependabot[bot] fcd1cf5
feat(tooltip): add context data to tooltip (#1464)
adisreyaj f0b1a36
chore:(deps-dev): bump ts-node from 10.5.0 to 10.7.0 (#1474)
dependabot[bot] 655e5e9
chore:(deps): bump zone.js from 0.11.4 to 0.11.5 (#1473)
dependabot[bot] 4ecfbcb
chore:(deps-dev): bump ng-mocks from 13.0.4 to 13.1.0 (#1475)
dependabot[bot] dddbc26
feat: adding template tooltip (#1469)
palbizu 39afe1b
feat: update readme (#1470)
itssharmasandeep 52a1832
feat: adding user telemetry orchestration service (#1468)
anandtiwary 1d80a59
Update sort icons and adding checkbox in header cell for multi select…
anandtiwary 5545b9d
feat: adding disale property to textarea component (#1478)
palbizu 243339d
refactor: adding string array filter and minor table fix (#1479)
anandtiwary d5c720e
fix: setting filterable to true for string array (#1482)
anandtiwary 0c9c70e
chore:(deps-dev): bump ng-mocks from 13.1.0 to 13.1.1 (#1481)
dependabot[bot] 5fd07f6
Feat | add error selectors (#1480)
adisreyaj 00b913a
feat: adding textarea disabled style (#1484)
palbizu a86d03c
feat: in memory preferences (#1490)
aaron-steinfeld e6c75c7
feat: Draggable List (#1483)
palbizu 379ff4e
feat: making group by compatible with url (#1487)
anandtiwary 116fadc
feat: adding a clear selected button to select option (#1488)
anandtiwary 0cbbcfc
feat(telemetry): added rudderstack telemetry js library
jaywalker21 ba53c48
feat: added rudderstack provider
jaywalker21 bb2e8d6
chore: added field to telemetry provider config
jaywalker21 fab872c
chore: remove unused imports
jaywalker21 48e7852
feat(telemetry): added rudderstack telemetry js library
jaywalker21 6496cb5
feat: added rudderstack provider
jaywalker21 6303d19
chore: added field to telemetry provider config
jaywalker21 fdd5afd
chore: remove unused imports
jaywalker21 5da419c
fix: add empty telemetry module (#1493)
aaron-steinfeld 72670f3
refactor: always use query limits (#1496)
aaron-steinfeld e726159
Page level time range (#1441)
Christian862 1d96c9a
Feat/select component clear option optional (#1492)
adisreyaj 928dc9c
chore:(deps-dev): bump ng-mocks from 13.1.1 to 13.2.0 (#1498)
dependabot[bot] 314892d
Add dynamic draggable list (#1494)
palbizu b80af65
chore:(deps-dev): bump @commitlint/cli from 16.2.1 to 16.2.3 (#1497)
dependabot[bot] 4e3b43c
refactor: filter and sheet modifications (#1495)
anandtiwary 92d1558
fix: in filter parser should support string array (#1502)
anandtiwary bce80df
Merge branch 'feature/telemetry-rudderstack' of github.com:razorpay/h…
jaywalker21 2ff6db3
Custom date range overflowing with page level time ranges (#1499)
Christian862 35b3801
Navigation style redesign (#1501)
Christian862 688d0fd
feat: Adding option disabled (#1504)
palbizu 4eb6cde
feat(core-cell-renderer): added duration cell renderer (#1476)
23nobody 1e95b74
chore:(deps-dev): bump @types/node from 17.0.21 to 17.0.23 (#1505)
dependabot[bot] f271859
fix: remove pagination from log-event-table (#1500)
jake-bassett 1fba7c5
refactor: minor tooltip and icon changes (#1508)
anandtiwary 0c1a25f
test: use correct mock functions (#1507)
aaron-steinfeld 9f93db6
chore:(deps-dev): bump ng-mocks from 13.2.0 to 13.3.0 (#1506)
dependabot[bot] d0a2408
feat: new inputs for newer panel style (#1512)
itssharmasandeep 95bac6d
refactor: adding a flex property to confirmation (#1513)
anandtiwary 5d2c2eb
feat: support for specifying navigation params to open the page in a …
arjunlalb ee0762a
feat: add storage scoping (#1517)
aaron-steinfeld 592cdb2
feat: support generating a color combination from a color palette (#1…
arjunlalb c03f07f
feat: code viewer component (#1511)
itssharmasandeep d828d45
feat: change table session storage to in-memory storage (#1518)
jake-bassett 020afb4
fix: adding support for long and double attribute type (#1519)
anandtiwary 22e03c7
feat: option to add legend on left side (#1520)
itssharmasandeep c8bffe3
feat: adding font size property to legend component and style fix (#1…
itssharmasandeep e1ce656
feat: add operator argument to GraphQlIdFilter (#1522)
jake-bassett d2a7e7a
feat: metric card component (#1523)
itssharmasandeep 7230275
fix(style): string array cell renderer styling (#1525)
arjunlalb a8d5a56
fix(styling): styling fixes for cell renderers (#1526)
arjunlalb 22937fc
Merge branch 'main' into feature/telemetry-rudderstack
jaywalker21 bff35d8
Merge branch 'feature/telemetry-rudderstack' of github.com:razorpay/h…
jaywalker21 b3adaf7
chore: updated rudderstack provider to have only named imports
jaywalker21 0773613
fix: removed additional field from telemetry config interface
jaywalker21 d60b83d
Merge branch 'feature/telemetry-rudderstack' into feature/analytics-i…
jaywalker21 e4ad06c
chore: add identify step in user telemetry orchestration service
jaywalker21 691fa7b
feat: add rudderstack provider import in root module
jaywalker21 f208a7f
fix: gracefully handle load failure in rudderstack provider
jaywalker21 5bac8ab
fix: remove usertelemetry module import from config module
jaywalker21 1c614cc
feat: support to inject values from secrets.js file to window
jaywalker21 a53a03e
feat: copy secrets script and dockerfile entrypoint added
jaywalker21 f99aa0d
chore: add warning message for secrets file
jaywalker21 c67c301
feat: conditionally enable analytics
jaywalker21 0eb6ed7
chore: add exec permission for shell script
jaywalker21 720d43f
chore: add default value for analytics flag to secret file
jaywalker21 f01db57
chore: add ENABLE_ANALYTICS field to window interface
jaywalker21 535e763
feat: conditionally initialise user telemetry service
jaywalker21 fbb21aa
fix: handle string matching for analytics flag
jaywalker21 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
FROM nginx:1.21-alpine | ||
COPY dist/hypertrace-ui /usr/share/nginx/html | ||
COPY conf/default.conf /etc/nginx/conf.d/default.conf | ||
COPY copy-secrets.sh /usr/share/nginx/html | ||
RUN chmod a+w /var/cache/nginx /var/run | ||
RUN chmod +x /usr/share/nginx/html/copy-secrets.sh | ||
EXPOSE 2020 | ||
HEALTHCHECK --interval=1s --retries=5 --timeout=1s CMD wget -qO- http://localhost:2020/graphql?query={__schema{queryType{name}}} &> /dev/null || exit 1 | ||
ENTRYPOINT copy-secrets.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
touch secrets.js | ||
if [ -z $ENABLE_ANALYTICS ] | ||
then | ||
ENABLE_ANALYTICS="false" | ||
fi | ||
echo "window.ENABLE_ANALYTICS = \"$ENABLE_ANALYTICS\";" > secrets.js | ||
if [ "$ENABLE_ANALYTICS" = "true" ] | ||
then | ||
echo "window.RUDDERSTACK_HT_WRITE_KEY = \"$RUDDERSTACK_HT_WRITE_KEY\";" >> secrets.js | ||
echo "window.RUDDERSTACK_HT_DATAPLANE_URL = \"$RUDDERSTACK_HT_DATAPLANE_URL\";" >> secrets.js | ||
else | ||
echo "Analytics is disabled" | ||
fi |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
projects/common/src/telemetry/providers/rudderstack/rudderstack-provider.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { Dictionary } from '../../../utilities/types/types'; | ||
|
||
import { apiObject, identify, load, page, track } from 'rudder-sdk-js'; | ||
import { TelemetryProviderConfig, UserTelemetryProvider, UserTraits } from '../../telemetry'; | ||
|
||
export interface RudderStackConfig extends TelemetryProviderConfig { | ||
writeKey: string; | ||
} | ||
|
||
@Injectable({ providedIn: 'root' }) | ||
export class RudderStackTelemetry implements UserTelemetryProvider<RudderStackConfig> { | ||
public initialize(config: RudderStackConfig): void { | ||
try { | ||
load(config.writeKey, config.orgId, { configUrl: config.orgId }); | ||
} catch (error) { | ||
/** | ||
* Fail silently | ||
*/ | ||
|
||
// tslint:disable-next-line: no-console | ||
console.error('Failed to load Rudderstack', error); | ||
} | ||
} | ||
|
||
public identify(userTraits: UserTraits): void { | ||
identify(undefined, userTraits as apiObject); | ||
} | ||
|
||
public trackEvent(name: string, eventData: Dictionary<unknown>): void { | ||
track(name, eventData as apiObject); | ||
} | ||
|
||
public trackPage(name: string, eventData: Dictionary<unknown>): void { | ||
page(name, name, eventData as apiObject); | ||
} | ||
|
||
public trackError(name: string, eventData: Dictionary<unknown>): void { | ||
this.trackEvent(name, eventData); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 12 additions & 5 deletions
17
src/app/shared/telemetry/user-telemetry-orchestration.service.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { UserTelemetryService } from '@hypertrace/common'; | ||
|
||
import { CustomWindow } from '../../root.module'; | ||
|
||
declare const window: CustomWindow; | ||
|
||
@Injectable({ | ||
providedIn: 'root' | ||
}) | ||
export class UserTelemetryOrchestrationService { | ||
public constructor(private readonly userTelemetryService: UserTelemetryService) {} | ||
|
||
public initialize(): void { | ||
this.userTelemetryService.initialize(); | ||
if (window.ENABLE_ANALYTICS === 'true') { | ||
this.userTelemetryService.initialize(); | ||
|
||
/** | ||
* To Identify user or keep it anonymous, please call this.userTelemetryService.identify() | ||
* to identify the user. | ||
*/ | ||
/** | ||
* To Identify user or keep it anonymous, please call this.userTelemetryService.identify() | ||
* to identify the user. | ||
*/ | ||
this.userTelemetryService.identify({}); | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Replace the below values with respective write key and dataplane URL on local | ||
cseas marked this conversation as resolved.
Show resolved
Hide resolved
|
||
// Please be mindful while pushing changes in this file as it is served to the browser | ||
// Ensure that it doesn't have any secrets | ||
window.ENABLE_ANALYTICS = 'false'; // this will be string as the environment variables are string | ||
window.RUDDERSTACK_HT_WRITE_KEY = 'RUDDERSTACK_HT_WRITE_KEY'; | ||
window.RUDDERSTACK_HT_DATAPLANE_URL = 'RUDDERSTACK_HT_DATAPLANE_URL'; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.