Skip to content

Latest commit

 

History

History
82 lines (48 loc) · 2.82 KB

README.md

File metadata and controls

82 lines (48 loc) · 2.82 KB

Datadog SDK for Android

A client-side Android library to interact with Datadog.

Getting Started

Log Collection

See the dedicated Datadog Android Log Collection documentation to learn how to forward logs from your Android application to Datadog.

Real User Monitoring

See the dedicated Datadog Android RUM Collection documentation to learn how to send RUM data from your Android application to Datadog.

Log Integrations

Timber

If your existing codebase is using Timber, you can forward all those logs to Datadog automatically by using the dedicated library.

RUM Integrations

Coil

If you use Coil to load images in your application, take a look at Datadog's dedicated library.

Fresco

If you use Fresco to load images in your application, take a look at Datadog's dedicated library.

Glide

If you use Glide to load images in your application, take a look at our dedicated library.

Picasso

If you use Picasso, let it use your OkHttpClient, and you'll get RUM and APM information about network requests made by Picasso.

        val picasso = Picasso.Builder(context)
                .downloader(OkHttp3Downloader(okHttpClient))
                //
                .build()
        Picasso.setSingletonInstance(picasso)

Retrofit

If you use Retrofit, let it use your OkHttpClient, and you'll get RUM and APM information about network requests made with Retrofit.

        val retrofitClient = Retrofit.Builder()
                .client(okHttpClient)
                //
                .build()

Looking up your logs

When you open your console in Datadog, navigate to the Logs section. In the search bar, type source:android. This filters your logs to only show the ones coming from mobile applications (Android and iOS).

Datadog Mobile Logs

Looking up your logs

When you open your console in Datadog, navigate to the Logs section. In the search bar, type source:android. This filters your logs to only show the ones coming from mobile applications (Android and iOS).

Datadog Mobile Logs

Troubleshooting

If you encounter any issue when using the Datadog SDK for Android, please take a look at the troubleshooting checklist, or at the existing issues.

Contributing

Pull requests are welcome. First, open an issue to discuss what you would like to change. For more information, read the Contributing Guide.

License

Apache License, v2.0