Skip to content
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

Requests from Transistor SDK are not been automatically intercepted #5964

Open
danielgomezrico opened this issue May 14, 2024 · 4 comments
Open

Comments

@danielgomezrico
Copy link

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Im using flutter 3.16.4 on Intellij
  • Firebase Component: Performance Monitor
  • Component version: firebase_performance: 0.9.4+4

[REQUIRED] Step 3: Describe the problem

Hi

I'm using a library to monitor GPS locations called transistor. This library has a native implementation on Android and iOS from which does HTTP requests on the native side every x time.

I'm reporting this because the transistor SDK requests are not been caught by Firebase performance:

The only way I found is listening to the HTTP request events done by the transistor SDK, but| I lose the request time and payload size with that.

I already spoke with Firebase Support with someone named Amuel, and told me that its better to open an issue so that this issue is been taken this way and not via support, not sure why.

I don't understand what is happening since the Firebase performance is already listening to other requests I do on the flutter side but not those done by the transistor SDK.

I'm creating this issue here because the flutter team says their library is only a jump between this one and flutter in: firebase/flutterfire#12655 (comment)

Steps to reproduce:

I made a sample: https://github.com/danielgomezrico/transistor-sdk-and-firebase-performance-error-example

It uses:

  • transistor SDK
  • firebase performance monitoring
    • It is able to track the requests been done in the native android side, I wrote an activity that does requests, but the ones done by the transistor SDK are not.
@lehcar09
Copy link

lehcar09 commented May 16, 2024

Hi @danielgomezrico, thank you for reaching out. I was able to reproduce the issue. Per checking, I can confirm that the requests are using OkHttp.

Screenshot 2024-05-16 at 5 00 44 AM

You mentioned that you have other requests done on the flutter side, do you mean that you have other network request on the flutter and they are traced? or do you mean the automatically collected data by Firebase Performance?

I'm thinking, if it's possible that there is a missing configuration in OkHttpClient so the request are not being traced by Firebase Performance. I'll notify our engineers about this and see what we can do here.

@danielgomezrico
Copy link
Author

These requests are being tracked fine:

  1. Requests done from the flutter side
  2. OkHTTP Requests I do from the native android side directly in the activity of the sample I shared.

These are not:
3. All requests done by this library, that are done in the native android side and also using OkHTTP

This seems confusing to me because requests on 2. are being tracked automatically but 3. are not, and in theory they use the same thing 🤔

Does that answer your question? @lehcar09

@visumickey
Copy link
Contributor

Can we confirm if this automatic tracking of network requests fail even with minification/proguarding disabled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants