Skip to content

[RUM-10719]: Removing opentracing dependencies #2783

Merged
satween merged 15 commits into
tvaleev/feature/RUM-9902-removing-unused-codefrom
tvaleev/feature/RUM-10719-removing_opentracing
Jul 8, 2025
Merged

[RUM-10719]: Removing opentracing dependencies #2783
satween merged 15 commits into
tvaleev/feature/RUM-9902-removing-unused-codefrom
tvaleev/feature/RUM-10719-removing_opentracing

Conversation

@satween

@satween satween commented Jul 7, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

  • Completely removing io.opentracing dependencies from the project.
  • Removing some tests, that was related to io.opentracing classes
  • Removing legacy package from the -trace-internal module
  • Fixing integration tests

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@satween
satween requested review from a team as code owners July 7, 2025 12:50
.withServiceName(serviceName)
.build()

datadogTracer.addScopeListener(object : DataScopeListener {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Replaced with standalone DataTracePropagationScopeListener class

*/
fun setPartialFlushThreshold(threshold: Int): Builder {
builderDelegate.withPartialFlushThreshold(threshold)
builderDelegate.withPartialFlushMinSpans(threshold)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I realized that withPartialFlushThreshold and withPartialFlushMinSpans actually makes the same (otel and opentracing notation)

}
}

private fun resolveSpanBuilderDecorator(): (SpanBuilder) -> SpanBuilder {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moved inside DatadogTracerBuilderAdapter

@codecov-commenter

codecov-commenter commented Jul 7, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 56.89655% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.89%. Comparing base (b73f98d) to head (bc3d3ae).
⚠️ Report is 39 commits behind head on tvaleev/feature/RUM-9902-removing-unused-code.

Files with missing lines Patch % Lines
...ndroid/trace/impl/internal/DatadogTracerAdapter.kt 23.53% 13 Missing ⚠️
...impl/internal/DataTracePropagationScopeListener.kt 33.33% 6 Missing ⚠️
...trace/impl/internal/DatadogTracerBuilderAdapter.kt 60.00% 3 Missing and 1 partial ⚠️
...id/trace/impl/internal/DatadogSpanLoggerAdapter.kt 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                                Coverage Diff                                @@
##           tvaleev/feature/RUM-9902-removing-unused-code    #2783      +/-   ##
=================================================================================
+ Coverage                                          67.41%   69.89%   +2.49%     
=================================================================================
  Files                                                833      788      -45     
  Lines                                              30816    28746    -2070     
  Branches                                            5194     4823     -371     
=================================================================================
- Hits                                               20772    20092     -680     
+ Misses                                              8633     7324    -1309     
+ Partials                                            1411     1330      -81     
Files with missing lines Coverage Δ
...ndroid/telemetry/internal/TelemetryEventHandler.kt 88.28% <100.00%> (+1.09%) ⬆️
...m/datadog/opentelemetry/trace/OtelSpanBuilder.java 21.67% <ø> (-2.53%) ⬇️
...datadog/opentelemetry/trace/OtelTracerBuilder.java 85.71% <100.00%> (-1.79%) ⬇️
.../android/trace/opentelemetry/OtelTracerProvider.kt 84.38% <100.00%> (-0.37%) ⬇️
...c/main/kotlin/com/datadog/android/trace/SpanExt.kt 73.68% <ø> (-2.51%) ⬇️
...n/com/datadog/android/trace/impl/DatadogTracing.kt 71.88% <100.00%> (ø)
...m/datadog/android/trace/internal/TracingFeature.kt 91.67% <100.00%> (+0.24%) ⬆️
...dog/android/trace/internal/data/CoreTraceWriter.kt 92.31% <100.00%> (ø)
...al/domain/event/CoreTracerSpanToSpanEventMapper.kt 91.11% <ø> (-2.22%) ⬇️
...datadog/android/okhttp/trace/TracingInterceptor.kt 84.66% <ø> (ø)
... and 4 more

... and 32 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@satween
satween merged commit 3ac2619 into tvaleev/feature/RUM-9902-removing-unused-code Jul 8, 2025
24 checks passed
@satween
satween deleted the tvaleev/feature/RUM-10719-removing_opentracing branch July 8, 2025 13:53
Comment thread features/dd-sdk-android-trace-api/api/apiSurface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants