dd-sdk-android icon indicating copy to clipboard operation
dd-sdk-android copied to clipboard

Network requests tracking for 3rd parties

Open fleficher opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

I would like Datadog to be able to automatically track the network requests for every third party libraries I have in my apps.

For some libraries, it's possible to give a custom Okhttp instance and add the required interceptors but not all libraries allow this.

This is particularly useful to get alerts when a 3rd party service is down.

Describe the solution you'd like

Ideally, something like what Firebase Performances propose: https://firebase.google.com/docs/perf-mon/network-traces?platform=android&hl=en

Network requests are automatically tracked by just applying the plugin. It also works on third-party libraries.

fleficher avatar Jan 23 '24 12:01 fleficher

Hello @fleficher!

Indeed, we currently require manual setup for the particular OkHttpClient instance.

What Firebase Performance is doing is achieved by the bytecode injection done by the com.google.firebase:perf-plugin, which scans the code being compiled and modifies it to inject the necessary instrumentation.

We currently don't have such functionality, but we may look into it in the future.

Since it may be a big feature request for us, can I please ask you to also open a Feature Request by contacting our support and referencing this issue as well. This will allow us to have a better tracking of it.

0xnm avatar Jan 23 '24 13:01 0xnm