Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEBUG-3568 Remove transport API instance/spec branching #4480

Merged
merged 8 commits into from
Mar 25, 2025

Conversation

p-datadog
Copy link
Member

@p-datadog p-datadog commented Mar 11, 2025

What does this PR do?

This PR moves toward having transport API Instance and Spec classes being API-specific. Currently, these classes are one for a component (e.g. remote/tracing/DI) but these classes combine functionality from multiple APIs and then downstream code has API-specific classes again that reference these "combined" Instance and Spec classes.

The idea is to have all of the transport-related classes be scoped to one API.

This PR removes the branching of one API -> multiple APIs -> one API again but leaves tracing instance & spec classes unchanged which makes them defined in a slightly different way from remote & DI counterparts.

Motivation:

Making transport code more readable.

Change log entry
None

Additional Notes:

How to test the change?
Existing unit tests

@github-actions github-actions bot added core Involves Datadog core libraries tracing labels Mar 11, 2025
Copy link

github-actions bot commented Mar 11, 2025

Thank you for updating Change log entry section 👏

Visited at: 2025-03-17 13:26:38 UTC

@datadog-datadog-prod-us1
Copy link
Contributor

datadog-datadog-prod-us1 bot commented Mar 11, 2025

Datadog Report

Branch report: transport-dry-3
Commit report: 3359179
Test service: dd-trace-rb

✅ 0 Failed, 20614 Passed, 1458 Skipped, 3m 8.47s Total Time

@pr-commenter
Copy link

pr-commenter bot commented Mar 11, 2025

Benchmarks

Benchmark execution time: 2025-03-24 12:39:16

Comparing candidate commit 3359179 in PR branch transport-dry-3 with baseline commit 535244c in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 31 metrics, 2 unstable metrics.

@codecov-commenter
Copy link

codecov-commenter commented Mar 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.76%. Comparing base (535244c) to head (3359179).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4480      +/-   ##
==========================================
- Coverage   97.76%   97.76%   -0.01%     
==========================================
  Files        1390     1390              
  Lines       84748    84741       -7     
  Branches     4281     4281              
==========================================
- Hits        82856    82843      -13     
- Misses       1892     1898       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@p-datadog p-datadog changed the title Transport wip DEBUG-3568 Remove transport API instance/spec branching Mar 17, 2025
@p-datadog p-datadog marked this pull request as ready for review March 19, 2025 15:31
@p-datadog p-datadog requested review from a team as code owners March 19, 2025 15:31
Copy link
Member

@Strech Strech left a comment

Choose a reason for hiding this comment

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

👏🏼 awesome

Copy link
Member

@marcotc marcotc left a comment

Choose a reason for hiding this comment

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

💯

@p-datadog p-datadog merged commit 39172da into master Mar 25, 2025
461 checks passed
@p-datadog p-datadog deleted the transport-dry-3 branch March 25, 2025 11:53
@github-actions github-actions bot added this to the 2.13.0 milestone Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Involves Datadog core libraries tracing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants