Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.
/ dd-sdk-android Public archive
forked from DataDog/dd-sdk-android

Datadog SDK for Android (Compatible with Kotlin and Java)

License

Notifications You must be signed in to change notification settings

NLSInc/dd-sdk-android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datadog SDK for Android and Android TV

A client-side Android and Android TV 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 or Android TV application to Datadog.

Real User Monitoring

See the dedicated Datadog Android RUM Collection documentation to learn how to send RUM data from your Android or Android TV 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 Datadog's dedicated library.

Picasso

If you use Picasso, let it use your OkHttpClient, and you can 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 can get RUM and APM information about network requests made with Retrofit.

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

Apollo (GraphQL)

If you use Apollo, let it use your OkHttpClient, and you can get RUM and APM information about all the queries performed through the Apollo client.

        val apolloClient =  ApolloClient.builder()
                 .okHttpClient(okHttpClient)
                 .serverUrl(<APOLLO_SERVER_URL>)
                 .build()

Looking up your logs

When you open your console in Datadog, navigate to the Log Explorer. In the search bar, type source:android. This filters your logs to only show the ones coming from Android or Android TV applications.

Datadog Mobile Logs

Looking up your spans

When you open your console in Datadog, navigate to APM > Services. In the list of services, you can see all your Android and Android TV applications (by default, the service name matches your application's package name, for example: com.example.android). You can access all the traces started from your application.

Datadog Mobile Logs

Looking up your RUM events

When you open your console in Datadog, navigate to the RUM Explorer. In the side bar, you can select your application and explore Sessions, Views, Actions, Errors, Resources, and Long Tasks.

Datadog Mobile Logs

Troubleshooting

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

Datadog cannot guarantee the Android and Android TV SDK's performance on Roku devices running with Android OS. If you encounter any issues when using the SDK for these devices, contact Datadog Support or open an issue in our GitHub project.

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

About

Datadog SDK for Android (Compatible with Kotlin and Java)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 91.8%
  • Java 4.4%
  • C 1.6%
  • Shell 1.1%
  • C++ 0.6%
  • Python 0.4%
  • CMake 0.1%