@vizydrop/tracer 2.3.0 → 2.4.2-ci.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitlab-ci.yml ADDED
@@ -0,0 +1,50 @@
1
+ stages:
2
+ - prepare
3
+ - tests
4
+ - publish
5
+
6
+ variables:
7
+ VERSION_OUTPUT_PATH: version.txt
8
+
9
+ prepare:version:
10
+ stage: prepare
11
+ image: targetprocess/gitversion:latest
12
+ script:
13
+ - git-version '/showvariable' SemVer | tee ${VERSION_OUTPUT_PATH}
14
+ artifacts:
15
+ expire_in: 2 days
16
+ paths:
17
+ - ${VERSION_OUTPUT_PATH}
18
+
19
+ tests:
20
+ stage: tests
21
+ image: node:16-alpine
22
+ needs: []
23
+ before_script:
24
+ - yarn install
25
+ script:
26
+ - npm run lint
27
+ - npm run test
28
+ cache:
29
+ key: "node_modules"
30
+ policy: pull # remove this to invalidate cache
31
+ paths:
32
+ - node_modules/
33
+
34
+ publish:npm:
35
+ stage: publish
36
+ dependencies:
37
+ - prepare:version
38
+ needs:
39
+ - tests
40
+ - prepare:version
41
+ image: node:12-alpine
42
+ rules:
43
+ - if: $PUBLISH
44
+ - if: $CI_COMMIT_TAG
45
+ before_script:
46
+ script:
47
+ - APP_VERSION=`cat ${VERSION_OUTPUT_PATH}`
48
+ - sed "s/999.999.999/$APP_VERSION/g" "package.json" > temp_package.json && mv temp_package.json "package.json"
49
+ - echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc
50
+ - npm publish
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ #### v2.4.0
2
+ Disable body capture
3
+ Disable use path as transactions
4
+
5
+ #### v2.3.1
6
+ Update dependencies
7
+
1
8
  #### v2.3.0
2
9
  Disable metrics
3
10
 
package/GitVersion.yml ADDED
@@ -0,0 +1,4 @@
1
+ mode: ContinuousDeployment
2
+ branches: {}
3
+ ignore:
4
+ sha: []
package/package.json CHANGED
@@ -1,36 +1,34 @@
1
1
  {
2
2
  "name": "@vizydrop/tracer",
3
3
  "license": "MIT",
4
- "version": "2.3.0",
4
+ "version": "2.4.2-ci.4",
5
5
  "scripts": {
6
6
  "test": "jest",
7
7
  "lint": "eslint --quiet ."
8
8
  },
9
9
  "dependencies": {
10
- "elastic-apm-node": "3.2.0",
11
- "lodash": "4.17.15"
10
+ "elastic-apm-node": "3.24.0",
11
+ "lodash": "^4.17.21"
12
12
  },
13
13
  "devDependencies": {
14
- "@vizydrop/eslint-config-vizydrop": "6.0.7",
15
- "eslint": "6.7.2",
14
+ "@vizydrop/eslint-config-vizydrop": "6.0.9",
15
+ "eslint": "6.8.0",
16
16
  "eslint-config-airbnb": "18.0.1",
17
- "eslint-config-prettier": "6.7.0",
17
+ "eslint-config-prettier": "6.10.0",
18
18
  "eslint-plugin-babel": "5.3.0",
19
19
  "eslint-plugin-filenames": "1.3.2",
20
- "eslint-plugin-flowtype": "4.5.2",
21
- "eslint-plugin-import": "2.18.2",
20
+ "eslint-plugin-flowtype": "4.6.0",
21
+ "eslint-plugin-import": "2.20.0",
22
22
  "eslint-plugin-jsx-a11y": "6.2.3",
23
23
  "eslint-plugin-lodash-fp": "2.2.0-a1",
24
24
  "eslint-plugin-mocha": "6.2.2",
25
- "eslint-plugin-node": "10.0.0",
25
+ "eslint-plugin-node": "11.0.0",
26
26
  "eslint-plugin-promise": "4.2.1",
27
- "eslint-plugin-react": "7.17.0",
27
+ "eslint-plugin-react": "7.18.0",
28
28
  "eslint-plugin-react-hooks": "2.3.0",
29
- "jest": "24.9.0",
30
- "jest-teamcity": "1.6.0"
29
+ "jest": "25.1.0"
31
30
  },
32
31
  "jest": {
33
- "testEnvironment": "node",
34
- "testResultsProcessor": "jest-teamcity"
32
+ "testEnvironment": "node"
35
33
  }
36
34
  }
package/src/tracer.js CHANGED
@@ -10,7 +10,8 @@ function createConfig(overrides) {
10
10
  centralConfig: false,
11
11
 
12
12
  // request processing
13
- usePathAsTransactionName: true,
13
+ usePathAsTransactionName: false,
14
+ captureBody: `off`,
14
15
  captureHeaders: false,
15
16
  ignoreUrls: [
16
17
  `/api/v1/status`,
package/version.txt ADDED
@@ -0,0 +1 @@
1
+ 2.4.2-ci.4