@defra-fish/connectors-lib 1.63.0-debug-airbrake-failure-8 → 1.63.0-debug-airbrake-failure-9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/airbrake.js +3 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra-fish/connectors-lib",
3
- "version": "1.63.0-debug-airbrake-failure-8",
3
+ "version": "1.63.0-debug-airbrake-failure-9",
4
4
  "description": "Shared connectors",
5
5
  "type": "module",
6
6
  "engines": {
package/src/airbrake.js CHANGED
@@ -22,10 +22,8 @@ export const initialise = () => {
22
22
  host: process.env.AIRBRAKE_HOST,
23
23
  environment: process.env.NODE_ENV,
24
24
  performanceStats: false,
25
- instrumentation: {
26
- fetch: false
27
- },
28
- errorNotifications: true
25
+ errorNotifications: true,
26
+ remoteConfig: false
29
27
  })
30
28
  console.log(`created new Notifier with error notifications set ${airbrake._opt.errorNotifications ? 'on' : 'off'}`)
31
29
 
@@ -38,7 +36,7 @@ export const initialise = () => {
38
36
  const error = args.find(arg => arg instanceof Error) ?? new Error(formatWithOptions(INSPECT_OPTS, ...args))
39
37
  const request = args.find(arg => Object.prototype.hasOwnProperty.call(arg, 'headers'))
40
38
  console.log(`notifying airbrake for console.${method}, error notifications is ${airbrake._opt.errorNotifications ? 'on' : 'off'}`, INSPECT_OPTS)
41
- airbrake._opt.errorNotifications
39
+ airbrake._opt.errorNotifications = true
42
40
  const res = await airbrake.notify({
43
41
  error,
44
42
  params: { consoleInvocationDetails: { method, arguments: { ...args.map(arg => inspect(arg, INSPECT_OPTS)) } } },