Skip to content

fix: do not track failed http requests#205

Merged
malinajirka merged 1 commit intotrunkfrom
do_not_track_failed_requests
Mar 21, 2024
Merged

fix: do not track failed http requests#205
malinajirka merged 1 commit intotrunkfrom
do_not_track_failed_requests

Conversation

@wzieba
Copy link
Copy Markdown
Member

@wzieba wzieba commented Mar 20, 2024

Description

After bump of Sentry SDK to 7.x version, in WooCommerce Android we started to observe issues with thrown SentryHttpClientException. Internal context: p1710951263665769-slack-C6H8C3G23

The reason is that, it seems by a mistake, Sentry SDK in version 7.5.0 enabled captureFailedRequests feature by default, while it was disabled by default in previously used by us, 6.32.0.

I say "by a mistake" because the comment above the code in 7.5.0 states that captureFailedRequests should be disabled by default.

6.32.0

https://github.com/getsentry/sentry-java/blob/a57bf6f1cdaf5840c6761c2946723804055a79c3/sentry-android-okhttp/src/main/java/io/sentry/android/okhttp/SentryOkHttpInterceptor.kt#L42

7.5.0

https://github.com/getsentry/sentry-java/blob/c2b79e4ef6bc7a32dc5fd83c980a547b87e5498b/sentry-android-okhttp/src/main/java/io/sentry/android/okhttp/SentryOkHttpInterceptor.kt#L36

@wzieba wzieba force-pushed the do_not_track_failed_requests branch from 20fc761 to 53a65bb Compare March 20, 2024 16:02
@wzieba wzieba added the bug label Mar 20, 2024
@wzieba wzieba force-pushed the do_not_track_failed_requests branch from 53a65bb to 4ef829e Compare March 20, 2024 16:08
@wzieba wzieba requested a review from malinajirka March 20, 2024 16:29
@wzieba
Copy link
Copy Markdown
Member Author

wzieba commented Mar 20, 2024

hi @malinajirka 👋 are you fine with reviewing this PR? No need for testing, it's just a configuration change.

Copy link
Copy Markdown
Contributor

@malinajirka malinajirka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice catch!

@malinajirka malinajirka merged commit 099d175 into trunk Mar 21, 2024
@malinajirka malinajirka deleted the do_not_track_failed_requests branch March 21, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants