Skip to content

Commit

Permalink
feat: instrument carbon v10 packages with JS scope (#16245)
Browse files Browse the repository at this point in the history
* chore: update v10 telemetry dep to 1.5.0

* fix: yarn dedupe

* feat: add js scope to instrumented packages

* fix: use latest-1 a11y ruleset
  • Loading branch information
francinelucca authored Apr 26, 2024
1 parent c59314d commit a7c99bd
Show file tree
Hide file tree
Showing 41 changed files with 97 additions and 43 deletions.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion achecker.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
const path = require('path');

module.exports = {
ruleArchive: 'latest',
ruleArchive: '18March2024',
policies: ['Custom_Ruleset'],
failLevels: ['violation'],
reportLevels: [
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"@babel/core": "^7.16.7",
"@carbon/cli-reporter": "^10.5.0",
"@ibm/telemetry-js": "^1.2.1",
"@ibm/telemetry-js": "^1.5.0",
"@octokit/plugin-retry": "^3.0.7",
"@octokit/plugin-throttling": "^2.6.0",
"@octokit/rest": "^16.28.1",
Expand Down
3 changes: 3 additions & 0 deletions packages/cli/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/colors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@
"needs": "^1.3.0"
},
"dependencies": {
"@ibm/telemetry-js": "^1.2.1"
"@ibm/telemetry-js": "^1.5.0"
}
}
3 changes: 3 additions & 0 deletions packages/colors/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@carbon/motion": "^10.29.3",
"@carbon/themes": "^10.55.4",
"@carbon/type": "^10.45.4",
"@ibm/telemetry-js": "^1.2.1"
"@ibm/telemetry-js": "^1.5.0"
},
"devDependencies": {
"@carbon/cli": "^10.34.3",
Expand Down
3 changes: 3 additions & 0 deletions packages/elements/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/feature-flags/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
]
},
"dependencies": {
"@ibm/telemetry-js": "^1.2.1"
"@ibm/telemetry-js": "^1.5.0"
}
}
3 changes: 3 additions & 0 deletions packages/feature-flags/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dependencies": {
"@carbon/import-once": "^10.7.1",
"@carbon/layout": "^10.37.3",
"@ibm/telemetry-js": "^1.2.1"
"@ibm/telemetry-js": "^1.5.0"
},
"devDependencies": {
"@carbon/cli": "^10.34.3",
Expand Down
3 changes: 3 additions & 0 deletions packages/grid/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/icon-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
},
"sideEffects": false,
"dependencies": {
"@ibm/telemetry-js": "^1.2.1"
"@ibm/telemetry-js": "^1.5.0"
}
}
3 changes: 3 additions & 0 deletions packages/icon-helpers/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/icons-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"dependencies": {
"@carbon/icon-helpers": "^10.28.3",
"@ibm/telemetry-js": "^1.2.1",
"@ibm/telemetry-js": "^1.5.0",
"prop-types": "^15.7.2"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/icons-react/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ collect:
- viewBox
- width
- xmlns
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/icons-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"@carbon/icon-helpers": "^10.28.3",
"@ibm/telemetry-js": "^1.2.1"
"@ibm/telemetry-js": "^1.5.0"
},
"devDependencies": {
"@carbon/cli-reporter": "^10.5.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/icons-vue/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
"rimraf": "^3.0.2"
},
"dependencies": {
"@ibm/telemetry-js": "^1.2.1"
"@ibm/telemetry-js": "^1.5.0"
}
}
3 changes: 3 additions & 0 deletions packages/icons/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/import-once/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"postinstall": "ibmtelemetry --config=telemetry.yml"
},
"dependencies": {
"@ibm/telemetry-js": "^1.2.1"
"@ibm/telemetry-js": "^1.5.0"
}
}
3 changes: 3 additions & 0 deletions packages/import-once/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
"needs": "^1.3.0"
},
"dependencies": {
"@ibm/telemetry-js": "^1.2.1"
"@ibm/telemetry-js": "^1.5.0"
}
}
3 changes: 3 additions & 0 deletions packages/layout/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/motion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
"needs": "^1.3.0"
},
"dependencies": {
"@ibm/telemetry-js": "^1.2.1"
"@ibm/telemetry-js": "^1.5.0"
}
}
3 changes: 3 additions & 0 deletions packages/motion/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/pictograms-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"dependencies": {
"@carbon/icon-helpers": "^10.28.3",
"@ibm/telemetry-js": "^1.2.1",
"@ibm/telemetry-js": "^1.5.0",
"prop-types": "^15.7.2"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/pictograms-react/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ collect:
- viewBox
- width
- xmlns
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/pictograms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
"rimraf": "^3.0.0"
},
"dependencies": {
"@ibm/telemetry-js": "^1.2.1"
"@ibm/telemetry-js": "^1.5.0"
}
}
3 changes: 3 additions & 0 deletions packages/pictograms/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@carbon/feature-flags": "^0.7.1",
"@carbon/icons-react": "^10.49.4",
"@carbon/layout": "^10.37.3",
"@ibm/telemetry-js": "^1.4.0",
"@ibm/telemetry-js": "^1.5.0",
"classnames": "2.3.1",
"copy-to-clipboard": "^3.3.1",
"downshift": "5.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@carbon/themes": "^10.55.4",
"@carbon/type": "^10.45.4",
"@ibm/plex": "6.0.0-next.6",
"@ibm/telemetry-js": "^1.2.1"
"@ibm/telemetry-js": "^1.5.0"
},
"devDependencies": {
"@carbon/test-utils": "^10.21.1",
Expand Down
3 changes: 3 additions & 0 deletions packages/styles/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/themes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@carbon/colors": "^10.37.3",
"@carbon/layout": "^10.37.3",
"@carbon/type": "^10.45.4",
"@ibm/telemetry-js": "^1.2.1",
"@ibm/telemetry-js": "^1.5.0",
"color": "^3.1.2"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/themes/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/type/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"dependencies": {
"@carbon/grid": "^10.43.3",
"@carbon/import-once": "^10.7.1",
"@ibm/telemetry-js": "^1.2.1"
"@ibm/telemetry-js": "^1.5.0"
},
"devDependencies": {
"@carbon/cli": "^10.34.3",
Expand Down
3 changes: 3 additions & 0 deletions packages/type/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
2 changes: 1 addition & 1 deletion packages/upgrade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"yargs": "^17.0.1"
},
"dependencies": {
"@ibm/telemetry-js": "^1.2.1",
"@ibm/telemetry-js": "^1.5.0",
"jscodeshift": "^0.13.1"
}
}
3 changes: 3 additions & 0 deletions packages/upgrade/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.clou
collect:
npm:
dependencies: null
js:
functions: {}
tokens: null
Loading

0 comments on commit a7c99bd

Please sign in to comment.