-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
okhttp crumbs missing #606
Comments
Hey @mrzbn, thanks for reaching out! As an intermediate step you can try to manually setup your Here's an example: val client = OkHttpClient.Builder()
.eventListener(SentryOkHttpEventListener())
.addInterceptor(SentryOkHttpInterceptor())
.build() |
@markushi I have multiple modules that initiate OkHttp. I tried to manually add the SentryOkHttpEventListener and SentryOkHttpInterceptor to all of OkHttp builders, but still no http breadcrumbs are showing. |
Thanks for giving it a quick try! Could you also share the OkHttp version you're using with us? |
I see two versions of okhttp in my "external libraries". v4.5.0 and v4.9.3. |
I have the same issue. All my OkHttp calls are from inside the main
Manually adding |
hey, could you please provide a reproducible sample? I've just tried it on our sample app, and it works just fine, without the need to manually declare interceptor or event listener, with the version 4.9.3 of okhttp: Also, could you share the version of sentry-android-okhttp that you use? You can find it out via |
@romtsn I'm not sure how to make a reproducible sample as my project is not small. version of sentry-android-okhttp is 7.0.0. |
Ok, I think I know what's going on. @stefanosiano it looks like we should actually add a breadcrumb before finishing the |
yes, we currently don't send the breadcrumb if no span is created |
@stefanosiano how can I create a span? |
@mrzbn spans are created automatically, as long as perfomance monitoring is enabled (the |
Gradle Version
7.3.3
AGP Version
7.2.2
Code Minifier/Optimizer
None
Version
4.0.0
Sentry SDK Version
7.0.0
Steps to Reproduce
Expected Result
display okhttp crumbs
Actual Result
The text was updated successfully, but these errors were encountered: