Skip to content

Commit c50c244

Browse files
jeanp413mustard-mh
authored andcommitted
Cleaup analytics
1 parent 44e6f64 commit c50c244

File tree

16 files changed

+742
-564
lines changed

16 files changed

+742
-564
lines changed

build/.webignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,6 @@ google-protobuf/**
6464

6565
@zip.js/**
6666
[email protected]/zip.js/dist/zip-no-worker-deflate.min.js
67+
68+
@jeanp413/analytics-node-umd/**
69+
!@jeanp413/analytics-node-umd/dist/umd/index.js

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
},
7171
"dependencies": {
7272
"@gitpod/gitpod-protocol": "main-gha",
73+
"@segment/analytics-node": "^1.1.0",
74+
"@jeanp413/analytics-node-umd": "^1.1.0",
7375
"@gitpod/ide-metrics-api-grpcweb": "main-gha",
7476
"@gitpod/local-app-api-grpcweb": "main-gha",
7577
"@gitpod/supervisor-api-grpc": "main-gha",

product.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"urlProtocol": "gitpod-code",
4141
"embedderIdentifier": "Gitpod",
4242
"enableTelemetry": true,
43+
"segmentKey": "YErmvd89wPsrCuGcVnF2XAl846W9WIGl",
4344
"aiConfig": {
4445
"ariaKey": "foo"
4546
},

remote/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"dependencies": {
66
"@gitpod/gitpod-protocol": "main-gha",
7+
"@segment/analytics-node": "^1.1.0",
78
"@gitpod/ide-metrics-api-grpcweb": "main-gha",
89
"@gitpod/supervisor-api-grpc": "main-gha",
910
"@improbable-eng/grpc-web-node-http-transport": "^0.15.0",

remote/web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"dependencies": {
66
"@gitpod/ide-metrics-api-grpcweb": "main-gha",
7+
"@jeanp413/analytics-node-umd": "^1.1.0",
78
"@gitpod/local-app-api-grpcweb": "main-gha",
89
"@microsoft/1ds-core-js": "^3.2.13",
910
"@microsoft/1ds-post-js": "^3.2.13",

remote/web/yarn.lock

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,29 @@
4040
dependencies:
4141
browser-headers "^0.4.1"
4242

43+
"@jeanp413/analytics-node-umd@^1.1.0":
44+
version "1.1.0"
45+
resolved "https://registry.yarnpkg.com/@jeanp413/analytics-node-umd/-/analytics-node-umd-1.1.0.tgz#bc612e1b2ed739f3ae05480aab196fdb56277e0f"
46+
integrity sha512-po9BAbfNoOVAwgULj4N9HTjnVPnghM5/s3HKPTyjJkn/JHQKuOiPHvTq35eOKyiIrUQLHv8n7nKkDx1QYgp1eg==
47+
dependencies:
48+
"@lukeed/uuid" "^2.0.0"
49+
"@segment/analytics-core" "1.3.0"
50+
buffer "^6.0.3"
51+
node-fetch "^2.6.7"
52+
tslib "^2.4.1"
53+
54+
"@lukeed/csprng@^1.1.0":
55+
version "1.1.0"
56+
resolved "https://registry.yarnpkg.com/@lukeed/csprng/-/csprng-1.1.0.tgz#1e3e4bd05c1cc7a0b2ddbd8a03f39f6e4b5e6cfe"
57+
integrity sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==
58+
59+
"@lukeed/uuid@^2.0.0":
60+
version "2.0.1"
61+
resolved "https://registry.yarnpkg.com/@lukeed/uuid/-/uuid-2.0.1.tgz#4f6c34259ee0982a455e1797d56ac27bb040fd74"
62+
integrity sha512-qC72D4+CDdjGqJvkFMMEAtancHUQ7/d/tAiHf64z8MopFDmcrtbcJuerDtFceuAfQJ2pDSfCKCtbqoGBNnwg0w==
63+
dependencies:
64+
"@lukeed/csprng" "^1.1.0"
65+
4366
"@microsoft/[email protected]", "@microsoft/1ds-core-js@^3.2.13":
4467
version "3.2.13"
4568
resolved "https://registry.yarnpkg.com/@microsoft/1ds-core-js/-/1ds-core-js-3.2.13.tgz#0c105ed75091bae3f1555c0334704fa9911c58fb"
@@ -76,6 +99,15 @@
7699
resolved "https://registry.yarnpkg.com/@microsoft/dynamicproto-js/-/dynamicproto-js-1.1.9.tgz#7437db7aa061162ee94e4131b69a62b8dad5dea6"
77100
integrity sha512-n1VPsljTSkthsAFYdiWfC+DKzK2WwcRp83Y1YAqdX552BstvsDjft9YXppjUzp11BPsapDoO1LDgrDB0XVsfNQ==
78101

102+
"@segment/[email protected]":
103+
version "1.3.0"
104+
resolved "https://registry.yarnpkg.com/@segment/analytics-core/-/analytics-core-1.3.0.tgz#677d1087af44d31266ddf60f72f93b5d5693c933"
105+
integrity sha512-ujScWZH49NK1hYlp2/EMw45nOPEh+pmTydAnR6gSkRNucZD4fuinvpPL03rmFCw8ibaMuKLAdgPJfQ0gkLKZ5A==
106+
dependencies:
107+
"@lukeed/uuid" "^2.0.0"
108+
dset "^3.1.2"
109+
tslib "^2.4.1"
110+
79111
80112
version "0.7.0"
81113
resolved "https://registry.yarnpkg.com/@vscode/iconv-lite-umd/-/iconv-lite-umd-0.7.0.tgz#d2f1e0664ee6036408f9743fee264ea0699b0e48"
@@ -91,26 +123,66 @@
91123
resolved "https://registry.yarnpkg.com/@zip.js/zip.js/-/zip.js-2.4.6.tgz#eb284910f4dcbccb267c5ef76950fb84ee43bb74"
92124
integrity sha512-gP13tvMy1bhaTWw5I/Sm3mJAOU7J8S18e4sAcscGzYY8NVUF8FRirfY17eYq+rZhRBk8SNg5bFzzWgFR47qSyw==
93125

126+
base64-js@^1.3.1:
127+
version "1.5.1"
128+
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
129+
integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
130+
94131
browser-headers@^0.4.1:
95132
version "0.4.1"
96133
resolved "https://registry.yarnpkg.com/browser-headers/-/browser-headers-0.4.1.tgz#4308a7ad3b240f4203dbb45acedb38dc2d65dd02"
97134
integrity sha512-CA9hsySZVo9371qEHjHZtYxV2cFtVj5Wj/ZHi8ooEsrtm4vOnl9Y9HmyYWk9q+05d7K3rdoAE0j3MVEFVvtQtg==
98135

136+
buffer@^6.0.3:
137+
version "6.0.3"
138+
resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6"
139+
integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==
140+
dependencies:
141+
base64-js "^1.3.1"
142+
ieee754 "^1.2.1"
143+
144+
dset@^3.1.2:
145+
version "3.1.2"
146+
resolved "https://registry.yarnpkg.com/dset/-/dset-3.1.2.tgz#89c436ca6450398396dc6538ea00abc0c54cd45a"
147+
integrity sha512-g/M9sqy3oHe477Ar4voQxWtaPIFw1jTdKZuomOjhCcBx9nHUNn0pu6NopuFFrTh/TRZIKEj+76vLWFu9BNKk+Q==
148+
99149
google-protobuf@^3.19.1:
100150
version "3.21.0"
101151
resolved "https://registry.yarnpkg.com/google-protobuf/-/google-protobuf-3.21.0.tgz#8dfa3fca16218618d373d414d3c1139e28034d6e"
102152
integrity sha512-byR7MBTK4tZ5PZEb+u5ZTzpt4SfrTxv5682MjPlHN16XeqgZE2/8HOIWeiXe8JKnT9OVbtBGhbq8mtvkK8cd5g==
103153

154+
ieee754@^1.2.1:
155+
version "1.2.1"
156+
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
157+
integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
158+
104159
105160
version "3.0.0"
106161
resolved "https://registry.yarnpkg.com/jschardet/-/jschardet-3.0.0.tgz#898d2332e45ebabbdb6bf2feece9feea9a99e882"
107162
integrity sha512-lJH6tJ77V8Nzd5QWRkFYCLc13a3vADkh3r/Fi8HupZGWk2OVVDfnZP8V/VgQgZ+lzW0kG2UGb5hFgt3V3ndotQ==
108163

164+
node-fetch@^2.6.7:
165+
version "2.6.13"
166+
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.13.tgz#a20acbbec73c2e09f9007de5cda17104122e0010"
167+
integrity sha512-StxNAxh15zr77QvvkmveSQ8uCQ4+v5FkvNTj0OESmiHu+VRi/gXArXtkWMElOsOUNLtUEvI4yS+rdtOHZTwlQA==
168+
dependencies:
169+
whatwg-url "^5.0.0"
170+
109171
110172
version "0.1.8"
111173
resolved "https://registry.yarnpkg.com/tas-client-umd/-/tas-client-umd-0.1.8.tgz#38bd32d49545417a0ea67fb618e646298e1b67cc"
112174
integrity sha512-0jAAujLmjjGXf9PzrNpjOrr/6CTpSOp8jX80NOHK5nlOTWWpwaZ16EOyrPdHnm2bVfPHvT0/RAD0xyiQHGQvCQ==
113175

176+
tr46@~0.0.3:
177+
version "0.0.3"
178+
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
179+
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==
180+
181+
tslib@^2.4.1:
182+
version "2.6.2"
183+
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
184+
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
185+
114186
115187
version "1.7.0"
116188
resolved "https://registry.yarnpkg.com/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz#439bfad8fe71abd7798338d1cd3dc53a8beea94b"
@@ -121,6 +193,19 @@ [email protected]:
121193
resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-9.0.0.tgz#313c6c8792b0507aef35aeb81b6b370b37c44d6c"
122194
integrity sha512-Cl65diFGxz7gpwbav10HqiY/eVYTO1sjQpmRmV991Bj7wAoOAjGQ97PpQcXorDE2Uc4hnGWLY17xme+5t6MlSg==
123195

196+
webidl-conversions@^3.0.0:
197+
version "3.0.1"
198+
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
199+
integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==
200+
201+
whatwg-url@^5.0.0:
202+
version "5.0.0"
203+
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
204+
integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==
205+
dependencies:
206+
tr46 "~0.0.3"
207+
webidl-conversions "^3.0.0"
208+
124209
125210
version "0.6.0-beta.32"
126211
resolved "https://registry.yarnpkg.com/xterm-addon-canvas/-/xterm-addon-canvas-0.6.0-beta.32.tgz#c9e74dd72fcc981a2e0cbd0b82827676bc5c74b9"

0 commit comments

Comments
 (0)