Files
cypress/packages/data-context/package.json
Matt Henkes 62f58e00ec chore: Add open telemetry to cypress to allow us to monitor the performance of the app overtime (#26305)
* initial commit, a kinda working prototype

* Ready to test in CI

* "SyntaxError: Cannot use import statement outside a module" I blame VS code for always inserting the wrong dependency

* try using built js instead of the ts file

* typescript fixes?

* get version correctly, don't use optional chaining in child process.

* trying this, idk

* try running telemetry for driver-integration-tests-chrome

* fix missing spans, add more attributes for some spans

* fix missing spans and add suite spans

* types

* Remove un-used require

* remove spans for describe blocks in favor of the full title for tests

* migrate to sync resource discovery, start new custom exporters for spans

* encrypted

* localhost

* don't do things on child process

* latest changes

* update server start span time / add v8 snapshot span & update command span names

* prepare for sync

* don't send blank key

* make telemetry work again for sending directly to honeycomb

* web-socket exporter

* Add in IPC exporter and message the child process before disconnecting

* Use the cloud api by default

* move cloud span exporter into telemetry package

* shutdown fixes

* fix enabled

* improve types

* run in ci

* yml is the worst

* type!

* add spans for timing insights for visible areas of improvement

* type errors

* lets try sending data to staging

* types

* types again

* remove problematic attributes

* clean up exporters

* i like this better even though it doesn't seem to matter much

* some self review cleanup

* Update comment

* add debug messages

* mocha tests

* actually exit with the right code... oops

* simple mistake... have to look into how to fix with ts...

* try this i guess

* don't return undefined

* read me diagram

* color?

* no rect

* moar diagram

* docs!

* formatting

* build more binaries

* Supposedly fix cypress in cypress test failures

* test 'fixes'

* try this instead

* do not transpile cypress packages dir

* lets try escaping our regex string

* Add some diagnostics to help test the built binary....

* try a more complex solution

* fix tests probably

* just ignore the specific file

* fix unit tests

* cr updates

* Apply suggestions from code review

Co-authored-by: Matt Schile <mschile@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Pr updates

* don't change the command queue

* move encoding and decoding telemetry context for ipc to the telemetry package

* build darn it

* plead for mercy from the testing gods, i merely wished to have named test reports, but clearly i have overreached.

* pr updates, send record key

* pr review

* optional chaining fails tests

* Apply suggestions from code review

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* tests for cloud-span-exporter

* bad merge

* adding tests for the remaining exporters

* note

* docs

* Correctly set test under the current run span for component testing

* gate sending the message.

* pr updates

* finally, fingers crossed.

---------

Co-authored-by: Emily Rohrbough <emilyrohrbough@yahoo.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2023-04-08 21:18:02 -05:00

92 lines
2.9 KiB
JSON

{
"name": "@packages/data-context",
"version": "0.0.0-development",
"description": "Centralized data access for the Cypress application",
"main": "index.js",
"browser": "src/index.ts",
"scripts": {
"build-prod": "tsc || echo 'built, with errors'",
"check-ts": "tsc --noEmit && yarn -s tslint",
"clean-deps": "rimraf node_modules",
"tslint": "tslint --config ../ts/tslint.json --project .",
"clean": "rimraf --glob \"./{src,test}/**/*.js\"",
"test": "yarn test-unit",
"test-unit": "mocha -r @packages/ts/register --config ./test/.mocharc.js --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json",
"lint": "eslint --ext .js,.ts,.json, ."
},
"dependencies": {
"@babel/code-frame": "7.8.3",
"@babel/generator": "7.17.9",
"@babel/parser": "7.13.0",
"@graphql-tools/batch-execute": "^8.4.6",
"@packages/telemetry": "0.0.0-development",
"@urql/core": "2.4.4",
"@urql/exchange-execute": "1.1.0",
"@urql/exchange-graphcache": "4.3.6",
"ast-types": "^0.14.2",
"chokidar": "3.5.1",
"common-path-prefix": "3.0.0",
"cross-fetch": "^3.1.4",
"dataloader": "^2.0.0",
"dayjs": "^1.9.3",
"dedent": "^0.7.0",
"ejs": "^3.1.8",
"endent": "2.0.1",
"execa": "1.0.0",
"front-matter": "^4.0.2",
"fs-extra": "8.1.0",
"getenv": "1.0.0",
"globby": "^11.0.1",
"graphql": "^15.5.1",
"isbinaryfile": "^4.0.8",
"launch-editor": "2.2.1",
"lodash": "4.17.21",
"micromatch": "4.0.4",
"node-machine-id": "1.1.12",
"p-defer": "^3.0.0",
"parse-glob": "3.0.4",
"prettier": "2.5.1",
"randexp": "0.5.3",
"randomstring": "1.1.5",
"react-docgen": "6.0.0-alpha.3",
"semver": "7.3.2",
"simple-git": "3.16.0",
"stringify-object": "^3.0.0",
"underscore.string": "^3.3.6",
"wonka": "^4.0.15"
},
"devDependencies": {
"@babel/types": "7.17.0",
"@packages/config": "0.0.0-development",
"@packages/errors": "0.0.0-development",
"@packages/example": "0.0.0-development",
"@packages/network": "0.0.0-development",
"@packages/resolve-dist": "0.0.0-development",
"@packages/root": "0.0.0-development",
"@packages/ts": "0.0.0-development",
"@packages/types": "0.0.0-development",
"@tooling/system-tests": "0.0.0-development",
"@types/babel__code-frame": "^7.0.3",
"@types/dedent": "^0.7.0",
"@types/ejs": "^3.1.2",
"@types/fs-extra": "^8.0.1",
"@types/micromatch": "4.0.2",
"@types/mocha": "^8.0.3",
"@types/parse-glob": "3.0.29",
"@types/prettier": "2.4.3",
"@types/sinon": "10.0.11",
"@types/sinon-chai": "3.2.8",
"@types/stringify-object": "^3.0.0",
"mocha": "7.0.1",
"mocha-junit-reporter": "2.2.0",
"mocha-multi-reporters": "1.5.1",
"sinon": "13.0.2",
"sinon-chai": "3.7.0",
"tslint": "^6.1.3"
},
"files": [
"src"
],
"types": "src/index.ts"
}