@gasket/plugin-elastic-apm 8.0.0-next.1 → 8.0.0-next.2

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/EXAMPLES.md CHANGED
@@ -42,11 +42,11 @@ apm.start({
42
42
  Access and decorate the current APM transaction:
43
43
 
44
44
  ```js
45
- // In a middleware or lifecycle
45
+ // In the express lifecycle
46
46
  export default {
47
47
  name: 'my-plugin',
48
48
  hooks: {
49
- middleware(gasket, app) {
49
+ express(gasket, app) {
50
50
  app.use(async (req, res, next) => {
51
51
  const transaction = await gasket.actions.getApmTransaction(req);
52
52
 
package/README.md CHANGED
@@ -130,7 +130,7 @@ To filter out other data, use the [APM Add Filter API].
130
130
  According to the [Elastic APM docs], the _Elastic APM agent for Node.js is a
131
131
  singleton_.
132
132
  This means that you can import and configure the singleton in various
133
- hooks of your Gasket app, such as with the [init] or [middleware] lifecycles.
133
+ hooks of your Gasket app, such as with the [init] or [express]/[fastify] lifecycles.
134
134
 
135
135
  ## Actions
136
136
 
@@ -221,7 +221,8 @@ such as for sensitive cookies.
221
221
  <!-- LINKS -->
222
222
 
223
223
  [init]:/packages/gasket-core/README.md#init
224
- [middleware]:/packages/gasket-plugin-middleware/README.md#middleware
224
+ [express]:/packages/gasket-plugin-express/README.md#express
225
+ [fastify]:/packages/gasket-plugin-fastify/README.md#fastify
225
226
  [configuration options documentation]:https://www.elastic.co/guide/en/apm/agent/nodejs/current/configuration.html
226
227
  [start recommendations]:https://www.elastic.co/guide/en/apm/agent/nodejs/master/agent-api.html#apm-start
227
228
  [Elastic APM docs]:https://www.elastic.co/guide/en/apm/agent/nodejs/master/agent-api.html
package/lib/index.js CHANGED
@@ -44,7 +44,7 @@ const plugin = {
44
44
  method: 'exec',
45
45
  description: 'Modify the APM transaction',
46
46
  link: 'README.md#apmtransaction',
47
- parent: 'middleware'
47
+ parent: 'express'
48
48
  }
49
49
  ]
50
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasket/plugin-elastic-apm",
3
- "version": "8.0.0-next.1",
3
+ "version": "8.0.0-next.2",
4
4
  "description": "Adds Elastic APM instrumentation to your application",
5
5
  "type": "module",
6
6
  "types": "lib/index.d.ts",
@@ -15,7 +15,10 @@
15
15
  },
16
16
  "./package.json": "./package.json"
17
17
  },
18
- "repository": "godaddy/gasket.git",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "godaddy/gasket.git"
21
+ },
19
22
  "publishConfig": {
20
23
  "access": "public"
21
24
  },
@@ -35,9 +38,9 @@
35
38
  "devDependencies": {
36
39
  "elastic-apm-node": "^4.11.0",
37
40
  "vitest": "^3.2.0",
38
- "@gasket/core": "^8.0.0-next.1",
41
+ "@gasket/core": "^8.0.0-next.2",
39
42
  "@gasket/plugin-metadata": "^8.0.0-next.1",
40
- "create-gasket-app": "^8.0.0-next.1"
43
+ "create-gasket-app": "^8.0.0-next.2"
41
44
  },
42
45
  "scripts": {
43
46
  "lint": "eslint .",