Skip to content

Task/gsdm 340/data dog sdk basic integration - #31

Merged
srajupusapati merged 4 commits into
masterfrom
task/GSDM-340/data_dog_SDK_basic_Integration
Sep 3, 2026
Merged

Task/gsdm 340/data dog sdk basic integration#31
srajupusapati merged 4 commits into
masterfrom
task/GSDM-340/data_dog_SDK_basic_Integration

Conversation

@srajupusapati

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings September 3, 2026 06:20
@srajupusapati
srajupusapati merged commit 612c11a into master Sep 3, 2026
1 of 2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Tracing is not actually enabled due to an incorrect Trace.equals(...) call, and the Datadog Android dependencies/plugin usage need to be reconciled with module/build configuration to avoid build or instrumentation issues.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Integrates Datadog into the Android networking stack and Student app lifecycle to collect RUM/logs/traces and associate telemetry with the current user.

Changes:

  • Adds Datadog OkHttp interceptor + event listener to shared REST adapters and the data seeding network client.
  • Initializes Datadog (RUM/Logs/Tracing) in the Student app and redacts sensitive query parameters from resources/errors.
  • Adds Datadog SDK dependencies and introduces the Datadog Gradle plugin dependency in the buildscript.
File summaries
File Description
libs/canvas-api-2/src/main/java/com/instructure/canvasapi2/CanvasRestAdapter.kt Adds Datadog OkHttp interceptor + event listener to multiple OkHttp clients.
libs/canvas-api-2/build.gradle Adds Datadog OkHttp/Trace SDK dependencies to the canvas-api-2 library.
automation/dataseedingapi/src/main/kotlin/com/instructure/dataseeding/util/CanvasNetworkAdapter.kt Refactors OkHttp builder creation and injects Datadog OkHttp instrumentation.
automation/dataseedingapi/build.gradle Adds Datadog OkHttp/Trace dependencies to the data seeding module.
apps/student/src/main/java/com/instructure/student/util/AppManager.kt Initializes Datadog (logs/RUM/tracing) and adds URL/message redaction.
apps/student/src/main/java/com/instructure/student/fragment/DashboardFragment.kt Sets Datadog user info from the logged-in user.
apps/student/build.gradle Adds Datadog BuildConfig fields and Datadog SDK dependencies for the Student app.
apps/buildSrc/src/main/java/GlobalDependencies.kt Adds a Datadog Gradle plugin coordinate constant.
apps/build.gradle Adds Datadog Gradle plugin to the buildscript classpath.
Review details
  • Files reviewed: 9/9 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +227 to +236
Trace.equals(
TraceConfiguration.Builder().setEventMapper(object : SpanEventMapper {
override fun map(event: SpanEvent): SpanEvent {
val originalUrl = event.resource
event.resource = redactSensitiveData(originalUrl)
return event
}
})
.build()
)
Comment on lines +50 to +52
/* Datadog */
implementation 'com.datadoghq:dd-sdk-android-okhttp:3.8.0'
implementation("com.datadoghq:dd-sdk-android-trace:3.8.0")
Comment thread apps/build.gradle
Comment on lines 33 to 38
classpath Plugins.KOTLIN
classpath Plugins.FIREBASE_CRASHLYTICS
if (project.coverageEnabled) { classpath Plugins.JACOCO_ANDROID }
classpath Plugins.HILT
classpath Plugins.DATADOG
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants