Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1003 Bytes

File metadata and controls

39 lines (27 loc) · 1003 Bytes

Datadog RUM extensions for Kotlin Coroutines

Getting started

To include the Datadog RUM extensions for Kotlin Coroutines in your project, simply add the following to your application's build.gradle file.

dependencies {
    implementation "com.datadoghq:dd-sdk-android-rum:<latest-version>"
    implementation "com.datadoghq:dd-sdk-android-rum-coroutines:<latest-version>"
}

Extensions

Reporting Coroutine Flow errors

If you're using Kotlin Coroutine Flow, you can propagate Flow errors to your RUM dashboard using the sendErrorToDatadog() method.

    suspend fun coroutineMethod() {
        val flow = flow { emit(/**/) }

        flow.sendErrorToDatadog().collect {
            //
        }
    }

Contributing

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

License

Apache License, v2.0