-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(browser): Add graphqlClientIntegration
#13783
base: develop
Are you sure you want to change the base?
feat(browser): Add graphqlClientIntegration
#13783
Conversation
|
Just wanted to inform about the failing tests:
|
dev-packages/browser-integration-tests/suites/integrations/graphqlClient/xhr/test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I finally found the time to review this in depth. Overall, I really like it, I left some comments with requests for changes. Mostly it is about moving stuff around, and avoiding any graphql-specific code in the "general" places. Also, please note that if you rebase this in develop
, there are/will be a bunch of conflicts - this is mostly because the utils
package is deprecated and all that code was moved to core
.
noted, i'll implement the feedback. thanks for the comprehensive review!
will move on with the conflicts if the current implementation checks out |
@@ -0,0 +1,121 @@ | |||
import { SENTRY_XHR_DATA_KEY } from '@sentry-internal/browser-utils'; | |||
import { getBodyString } from '@sentry-internal/replay'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mydea should this util be in the replay package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we use/need it here, I would move it to @sentry-internal/browser-utils
, and use it from there both in replay and here!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise, this will lead to circular dependency issues :)
Signed-off-by: Kaung Zin Hein <[email protected]>
…s other than string - Moved internal `getFetchRequestArgBody` to `browser-utils`. - Added unit tests. Signed-off-by: Kaung Zin Hein <[email protected]>
Signed-off-by: Kaung Zin Hein <[email protected]>
i'm not sure what's making the webkit tests flaky for the added integration tests; locally they all pass on consecutive runs via |
- Moved replay-specific `_serializeFormData` to `browser-utils` and added test. Signed-off-by: Kaung Zin Hein <[email protected]>
Signed-off-by: Kaung Zin Hein <[email protected]>
Signed-off-by: Kaung Zin Hein <[email protected]>
Signed-off-by: Kaung Zin Hein <[email protected]>
Signed-off-by: Kaung Zin Hein <[email protected]>
…n-cronic/sentry-javascript into feat/graphqlClientIntegration
I can't push changes on your branch, so I opened a PR here: Zen-cronic#1 which should fix the remaining CI issues on your branch! |
…y#15265) Due to a change in the lifecycle of Svelte components in Svelte 5 (using Rune mode), our SDK can no longer leverage the `(before|after)Update` hooks to track component update spans. For v9, this patch therefore disables update tracking by default.
Removes a no longer necessary fallback check that we only needed in SvelteKit 1.26.0 or older. For Kit 2.x, we can rely on the `event.isSubRequest` flag to identify sub vs. actual requests in our request handler. fixes getsentry#15244
…try#15282) - adds a toolbar for cropping and annotations - changes from inline styles to multiple class names in BEM format With annotation option: ![Screenshot 2025-02-03 at 3 51 04 PM](https://github.com/user-attachments/assets/97e4ac38-4926-49e5-a6f3-d474174e3c38) Without annotation option (to confirm that it looks the same as before): ![Screenshot 2025-02-03 at 5 09 01 PM](https://github.com/user-attachments/assets/8b614c38-3c1b-4d7e-986e-ead86a3f4349) Closes getsentry#15252
…etsentry#15288) The debugging ability for Azure Functions when using Azure Static Web Apps is very limited. But as I could see some Sentry-related logs I **think** Sentry is generally initialized. However, server-related logs don't show up in Sentry. This is **probably** because the Azure Function finishes before the error can be sent to Sentry. By adding the Azure environment variable to check whether we should flush with a timeout, this should possibly fix the issue. Logs in Application Insights: ![image](https://github.com/user-attachments/assets/ed5ccd37-be87-4338-946b-94ec543e08c5)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left two more comments, where we should use the passed in logger
instance - other than, this this is ready to go 🚀 thanks for the work, this was a tricky one but it turned out pretty great! (also needs a rebase, there is one small conflict)
Signed-off-by: Kaung Zin Hein <[email protected]>
all resolved now! |
Resolves #13399
Todo:
Supportfetch
spans and testsSupport graphql queries without a nameEnhance breadcrumb datayarn lint
) & (yarn test
).