@@ -48,6 +48,13 @@ export interface ApolloLinkSentryOptions {
48
48
*/
49
49
shouldHandleOperation: undefined | ((operation : Operation ) => boolean );
50
50
51
+ /**
52
+ * The uri of the GraphQL endpoint.
53
+ *
54
+ * Used to add context information, e.g. to breadcrumbs.
55
+ */
56
+ uri: undefined | string ;
57
+
51
58
/**
52
59
* Set the Sentry transaction name to the GraphQL operation name.
53
60
*
@@ -78,57 +85,57 @@ export interface ApolloLinkSentryOptions {
78
85
}
79
86
80
87
export type AttachBreadcrumbsOptions = {
81
- /**
82
- * Include the full query string?
83
- */
84
- includeQuery: false | true ;
85
-
86
- /**
87
- * Include the variable values?
88
- *
89
- * Be careful not to leak sensitive information or send too much data.
90
- */
91
- includeVariables: false | true ;
92
-
93
- /**
94
- * Include the fetched result (data, errors, extensions)?
95
- *
96
- * Be careful not to leak sensitive information or send too much data.
97
- */
98
- includeResult: false | true ;
99
-
100
- /**
101
- * Include the response error?
102
- *
103
- * Be careful not to leak sensitive information or send too much data.
104
- */
105
- includeError: false | true ;
106
-
107
- /**
108
- * Include the contents of the Apollo Client cache?
109
- *
110
- * This is mostly useful for debugging purposes and not recommended for production environments,
111
- * see "Be careful what you include", unless carefully combined with `beforeBreadcrumb`.
112
- */
113
- includeCache: false | true ;
114
-
115
- /**
116
- * Include arbitrary data from the `ApolloContext`?
117
- *
118
- * Accepts a list of keys in dot notation, e.g. `foo.bar`. Can be useful to include extra
119
- * information such as headers.
120
- */
121
- includeContext: false | NonEmptyArray <string >;
122
-
123
- /**
124
- * Modify the breadcrumb right before it is sent.
125
- *
126
- * Can be used to add additional data from the operation or clean up included data.
127
- * Very useful in combination with options like `includeVariables` and `includeContextKeys`.
128
- */
129
- transform:
130
- | undefined
131
- | ((breadcrumb : Breadcrumb , operation : Operation ) => Breadcrumb );
88
+ /**
89
+ * Include the full query string?
90
+ */
91
+ includeQuery: false | true ;
92
+
93
+ /**
94
+ * Include the variable values?
95
+ *
96
+ * Be careful not to leak sensitive information or send too much data.
97
+ */
98
+ includeVariables: false | true ;
99
+
100
+ /**
101
+ * Include the fetched result (data, errors, extensions)?
102
+ *
103
+ * Be careful not to leak sensitive information or send too much data.
104
+ */
105
+ includeResult: false | true ;
106
+
107
+ /**
108
+ * Include the response error?
109
+ *
110
+ * Be careful not to leak sensitive information or send too much data.
111
+ */
112
+ includeError: false | true ;
113
+
114
+ /**
115
+ * Include the contents of the Apollo Client cache?
116
+ *
117
+ * This is mostly useful for debugging purposes and not recommended for production environments,
118
+ * see "Be careful what you include", unless carefully combined with `beforeBreadcrumb`.
119
+ */
120
+ includeCache: false | true ;
121
+
122
+ /**
123
+ * Include arbitrary data from the `ApolloContext`?
124
+ *
125
+ * Accepts a list of keys in dot notation, e.g. `foo.bar`. Can be useful to include extra
126
+ * information such as headers.
127
+ */
128
+ includeContext: false | NonEmptyArray <string >;
129
+
130
+ /**
131
+ * Modify the breadcrumb right before it is sent.
132
+ *
133
+ * Can be used to add additional data from the operation or clean up included data.
134
+ * Very useful in combination with options like `includeVariables` and `includeContextKeys`.
135
+ */
136
+ transform:
137
+ | undefined
138
+ | ((breadcrumb : GraphQLBreadcrumb , operation : Operation ) => Breadcrumb );
132
139
};
133
140
```
134
141
0 commit comments