@envelop/sentry 15.1.1 → 15.2.1
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/LICENSE +3 -1
- package/README.md +4 -4
- package/cjs/index.js +2 -2
- package/esm/index.js +2 -2
- package/package.json +6 -5
- package/typings/index.d.cts +1 -1
- package/typings/index.d.ts +1 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2020
|
|
3
|
+
Copyright (c) 2018-2020 Graphcool
|
|
4
|
+
Copyright (c) 2020-2021 Prisma
|
|
5
|
+
Copyright (c) 2021- The Guild
|
|
4
6
|
|
|
5
7
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
8
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -5,16 +5,16 @@ This plugin collects errors and performance tracing for your execution flow, and
|
|
|
5
5
|
|
|
6
6
|
This is how it looks like in Sentry for error tracking:
|
|
7
7
|
|
|
8
|
-

|
|
9
|
+

|
|
10
10
|
|
|
11
11
|
> The operation name, document, variables are collected on errors, and the breadcrumbs that led to
|
|
12
12
|
> the error. You can also add any custom values that you need.
|
|
13
13
|
|
|
14
14
|
And for performance tracking:
|
|
15
15
|
|
|
16
|
-

|
|
17
|
+

|
|
18
18
|
|
|
19
19
|
> You can get information about each resolver (including field and type names), it's execution time
|
|
20
20
|
> and arguments. Also, in case of an error, the performance log and info are attached automatically
|
package/cjs/index.js
CHANGED
|
@@ -34,8 +34,8 @@ const useSentry = (options = {}) => {
|
|
|
34
34
|
const operationType = rootOperation.operation;
|
|
35
35
|
const document = (0, core_1.getDocumentString)(args.document, graphql_1.print);
|
|
36
36
|
const opName = args.operationName || rootOperation.name?.value || 'Anonymous Operation';
|
|
37
|
-
const addedTags =
|
|
38
|
-
const traceparentData =
|
|
37
|
+
const addedTags = options.appendTags?.(args) || {};
|
|
38
|
+
const traceparentData = options.traceparentData?.(args) || {};
|
|
39
39
|
const transactionName = options.transactionName ? options.transactionName(args) : opName;
|
|
40
40
|
const op = options.operationName ? options.operationName(args) : 'execute';
|
|
41
41
|
const tags = {
|
package/esm/index.js
CHANGED
|
@@ -30,8 +30,8 @@ export const useSentry = (options = {}) => {
|
|
|
30
30
|
const operationType = rootOperation.operation;
|
|
31
31
|
const document = getDocumentString(args.document, print);
|
|
32
32
|
const opName = args.operationName || rootOperation.name?.value || 'Anonymous Operation';
|
|
33
|
-
const addedTags =
|
|
34
|
-
const traceparentData =
|
|
33
|
+
const addedTags = options.appendTags?.(args) || {};
|
|
34
|
+
const traceparentData = options.traceparentData?.(args) || {};
|
|
35
35
|
const transactionName = options.transactionName ? options.transactionName(args) : opName;
|
|
36
36
|
const op = options.operationName ? options.operationName(args) : 'execute';
|
|
37
37
|
const tags = {
|
package/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/sentry",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.2.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@sentry/node": "^8.0.0 || ^9.0.0 || ^10.0.0",
|
|
7
|
-
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
8
|
-
"@envelop/core": "^5.
|
|
7
|
+
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
8
|
+
"@envelop/core": "^5.6.1"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"tslib": "^2.5.0"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
|
-
"url": "https://github.com/graphql-hive/
|
|
16
|
-
"directory": "packages/plugins/sentry"
|
|
15
|
+
"url": "https://github.com/graphql-hive/graphql-yoga.git",
|
|
16
|
+
"directory": "packages/envelop/plugins/sentry"
|
|
17
17
|
},
|
|
18
|
+
"homepage": "https://github.com/graphql-hive/graphql-yoga/tree/main/packages/envelop/plugins/sentry#readme",
|
|
18
19
|
"author": "Dotan Simha <dotansimha@gmail.com>",
|
|
19
20
|
"license": "MIT",
|
|
20
21
|
"engines": {
|
package/typings/index.d.cts
CHANGED
package/typings/index.d.ts
CHANGED