@envelop/newrelic 5.0.0-alpha-ccec0fc.0 → 5.0.0-alpha-7ed14a0a.0
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/package.json +5 -5
- package/typings/index.d.cts +21 -0
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/newrelic",
|
|
3
|
-
"version": "5.0.0-alpha-
|
|
3
|
+
"version": "5.0.0-alpha-7ed14a0a.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@envelop/core": "3.0.0-alpha-
|
|
6
|
+
"@envelop/core": "3.0.0-alpha-7ed14a0a.0",
|
|
7
7
|
"newrelic": "^7 || ^8.0.0",
|
|
8
|
-
"@graphql-tools/graphql": "0.1.0-alpha-
|
|
8
|
+
"@graphql-tools/graphql": "0.1.0-alpha-25f2d2c4.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {},
|
|
11
11
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
27
27
|
"require": {
|
|
28
|
-
"types": "./typings/index.d.
|
|
28
|
+
"types": "./typings/index.d.cts",
|
|
29
29
|
"default": "./cjs/index.js"
|
|
30
30
|
},
|
|
31
31
|
"import": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"./*": {
|
|
41
41
|
"require": {
|
|
42
|
-
"types": "./typings/*.d.
|
|
42
|
+
"types": "./typings/*.d.cts",
|
|
43
43
|
"default": "./cjs/*.js"
|
|
44
44
|
},
|
|
45
45
|
"import": {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Plugin, DefaultContext } from '@envelop/core';
|
|
2
|
+
import { GraphQLError } from '@graphql-tools/graphql';
|
|
3
|
+
export declare type UseNewRelicOptions = {
|
|
4
|
+
includeOperationDocument?: boolean;
|
|
5
|
+
includeExecuteVariables?: boolean | RegExp;
|
|
6
|
+
includeRawResult?: boolean;
|
|
7
|
+
trackResolvers?: boolean;
|
|
8
|
+
includeResolverArgs?: boolean | RegExp;
|
|
9
|
+
rootFieldsNaming?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Function that returns a custom operation name to be used as transaction name and attribute
|
|
12
|
+
*/
|
|
13
|
+
extractOperationName?: (context: DefaultContext) => string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Indicates whether or not to skip reporting a given error to NewRelic.
|
|
16
|
+
* By default, this plugin skips all `EnvelopError` errors and does not report them to NewRelic.
|
|
17
|
+
*/
|
|
18
|
+
skipError?: (error: GraphQLError) => boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare function defaultSkipError(error: GraphQLError): boolean;
|
|
21
|
+
export declare const useNewRelic: (rawOptions?: UseNewRelicOptions) => Plugin;
|