dd-android-sdk-v3-upgrade
БесплатноБез исполняемых скриптовНе проверенUpgrade an Android application from Datadog's v2 mobile RUM SDK to the latest stable v3 SDK, including Core, RUM, Logs, Trace, OkHttp, and Session Replay…
от datadog-labs★ 188 звёзд на GitHubОб этом скилле
Upgrade Datadog RUM Android SDK from v2 to v3
Use this skill when an Android project uses Datadog Mobile SDK 2.x and must be upgraded to the latest stable 3.x release. The v3 migration removes legacy OpenTracing support and updates APIs across the Android SDK modules.
This skill incorporates the Android v2-to-v3 migration guidance from
[DataDog/documentation][documentation-source], reviewed at commit
a27f7562165b9058f8cd597b48473cc7ecbeda81 on 2026-09-25. Use the instructions
below as the migration source of truth; consult the live documentation only when
the project contains an API not covered here or the requested target is newer
than this reviewed revision.
1. Establish the migration scope
Before editing, inspect the entire Android project for:
- every
com.datadoghq:dd-sdk-android-*dependency, including dependencies in version catalogs, convention plugins, and included builds; - every
com.datadog.androidandio.opentracingimport; - calls that initialize Datadog or enable RUM, Logs, Trace, Crash Reporting, Session Replay, WebView tracking, or NDK crash reporting;
- custom endpoints passed to
useCustomEndpoint; - manual RUM resource calls and custom tracing;
DatadogInterceptorandTracingInterceptorconstruction;- the project's
minSdkand Kotlin version.
Do not remove a Datadog feature, instrumentation path, or test merely to make the upgrade compile. Preserve the application's existing telemetry behavior.
2. Satisfy v3 platform requirements
- Set the Android minimum API level to at least 23. If the application cannot
raise
minSdkto 23, stop and report that it cannot adopt SDK v3. - Use Kotlin 1.9 or newer.
- If the project uses Jetpack Compose with Kotlin below 2.0, update Kotlin and
composeOptions.kotlinCompilerExtensionVersiontogether using the official [Compose-to-Kotlin compatibility map][compose-kotlin-map]. Do not suppress the compatibility check. - For Kotlin 2.0 or newer, use the Compose Compiler Gradle plugin as directed by the compatibility documentation instead of choosing a version from the legacy compatibility table.
- Remove direct OpenTracing dependencies after migrating all OpenTracing code.
- If the preferred OpenTelemetry trace migration is used with
minSdkbelow 26, enable core-library desugaring as required by OpenTelemetry Java.
3. Upgrade the SDK dependencies
Before editing dependencies, query the official
[DataDog/dd-sdk-android GitHub releases][github-releases] and select the
highest stable semantic version matching 3.x.y. Ignore drafts, prereleases,
release candidates, -SNAPSHOT versions, and releases from other major
versions. The GitHub Releases API can be queried at:
https://api.github.com/repos/DataDog/dd-sdk-android/releases?per_page=100
Use each release object's tag_name, draft, and prerelease fields rather
than assuming the first tag or the repository's development changelog is a
stable release. If GitHub cannot be reached or the response cannot be parsed,
use 3.14.1 as the fallback version and report that fallback explicitly.
Change every Datadog Android SDK artifact from 2.x to the selected concrete 3.x version. Follow the project's existing version-management convention and update the lockfile or version catalog where applicable.
Do not introduce moving versions such as 3.+ or latest.release, and do not
leave a mixture of v2 and v3 Datadog artifacts in the resolved dependency graph.
If the application uses Jetpack Compose and enables Compose instrumentation in the Datadog Gradle plugin, add the v3 Compose integration at the same SDK version:
implementation("com.datadoghq:dd-sdk-android-compose:<datadog-v3-version>")
Leaving Compose instrumentation enabled without this artifact causes the Datadog compiler plugin to fail compilation with a missing-dependency error.
4. Migrate Core
The user ID passed to Datadog.setUserInfo is mandatory in v3. Replace null
with the application's stable user identifier:
// v2
Datadog.setUserInfo(null, "Jane Smith", "[email protected]")
// v3
Datadog.setUserInfo("user123", "Jane Smith", "[email protected]")
Do not invent a production identity value. Reuse the application's actual user identifier or preserve its existing anonymous-user strategy with an appropriate non-null identifier.
5. Migrate RUM
Custom endpoint
RumConfiguration.Builder.useCustomEndpoint must receive the complete RUM
upload URL rather than only a host:
Rum.enable(
RumConfiguration.Builder("<application-id>")
.useCustomEndpoint("https://example.com/rum/upload")
.build()
)
Preserve the project's custom host and path.
Manual resources
Replace the string HTTP method argument of startResource with
RumResourceMethod:
import com.datadog.android.rum.RumResourceMethod
GlobalRumMonitor.get().startResource(
key = "resource-key",
method = RumResourceMethod.GET,
ur
Установить dd-android-sdk-v3-upgrade в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dd-android-sdk-v3-upgrade?
Upgrade an Android application from Datadog's v2 mobile RUM SDK to the latest stable v3 SDK, including Core, RUM, Logs, Trace, OkHttp, and Session Replay breaking changes.
Как установить скилл dd-android-sdk-v3-upgrade?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dd-android-sdk-v3-upgrade запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic