Skip to content

refactor(profiling): rename native span link manager - #20344

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
mainfrom
taegyunkim/profiling-span-links-rename
Sep 15, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
mainfrom
taegyunkim/profiling-span-links-rename

Conversation

@taegyunkim

@taegyunkim taegyunkim commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

Rename the native ThreadSpanLinks manager to SpanLinks, including its source, header, CMake target, and native test names. Update the remaining profiling diagnostic that referenced the old class name.

This is a behavior-preserving refactor that prepares the manager to support logical execution contexts in follow-up PRs. It does not change control flow, synchronization, stored data, or the Python extension API.

Testing

  • scripts/lint checks
  • scripts/lint profiling-native-check
  • scripts/run-tests --venv 1ed51fe
    • Python 3.12 profiling suite: 406 passed, 37 skipped, 2 xfailed
  • scripts/run-benchmarks --list ...
    • No benchmark suites match these native profiling files

Risks

Low. The primary risk is a stale source path, include, or symbol reference. Native formatting and coverage checks passed, and the profiling suite rebuilt and exercised the renamed native extension.

Additional Notes

No release note is needed because this is an internal-only rename with no customer-visible behavior change. This PR is intended to become the base of the remaining span-link attribution stack.

Review this stack in order:

Order PR Purpose
1 #20344 (merged) Rename the native span-link manager
2 #20346 Add domain-aware native span-link storage
3 #20347 Centralize Python routing and lifecycle handling
4 #19736 Attribute asyncio task samples
5 #19737 Propagate attribution into AnyIO worker threads
6 #19420 Attribute gevent greenlet samples

@taegyunkim taegyunkim added the changelog/no-changelog A changelog entry is not required for this PR. label Sep 15, 2026
@datadog-official

datadog-official Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Pipelines  Tests

⚠️ Warnings

❌ Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 1 Pipeline job failed

Changelog | Validate changelog

View more details · View in GitHub Actions

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: fa35e78 | Docs | View more details | Give us feedback!

@cit-pr-commenter-54b7da

cit-pr-commenter-54b7da Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codeowners resolved as

Resolved from the full PR diff against main using the target branch CODEOWNERS file.
CODEOWNERS team requests not listed below are not required by the current file set.

No remaining files require a CODEOWNERS review.

@cit-pr-commenter-54b7da

Copy link
Copy Markdown

Circular import analysis

⚠️ Existing circular imports

There are 1 circular imports that already exist on the base branch and have not been changed by this PR.

ddtrace.errortracking._handled_exceptions.bytecode_injector -> ddtrace.errortracking._handled_exceptions.callbacks -> ddtrace.errortracking._handled_exceptions.collector -> ddtrace.errortracking._handled_exceptions.bytecode_reporting -> ddtrace.errortracking._handled_exceptions.bytecode_injector

@cit-pr-commenter-54b7da

cit-pr-commenter-54b7da Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Dependency direction analysis

⚠️ Existing dependency direction violations

There are 218 dependency direction violations that already exist on the base branch and have not been changed by this PR.

Show existing violations (showing 5 of 218 highest severity)
ddtrace.internal.tracemethods -×-> ddtrace.trace  (internal-core -> product:tracing, score=133)
ddtrace.llmobs._integrations.openai_agents -×-> ddtrace.trace  (product:llmobs -> product:tracing, score=131)
ddtrace.internal.opentelemetry.trace -×-> ddtrace.trace  (product:opentelemetry -> product:tracing, score=131)
ddtrace.appsec._contrib.django -×-> ddtrace.trace  (product:appsec -> product:tracing, score=131)
ddtrace.debugging._exception.replay -×-> ddtrace.trace  (product:debugging -> product:tracing, score=131)

To see all violations, download the layers-base.json and layers-pr.json artifacts from this CI job and run:

uv run --script scripts/import-analysis/layers.py compare layers-base.json layers-pr.json

@taegyunkim
taegyunkim marked this pull request as ready for review September 15, 2026 19:13
@taegyunkim
taegyunkim requested a review from a team as a code owner September 15, 2026 19:13
@taegyunkim taegyunkim added the Profiling Continous Profling label Sep 15, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-15T19:15:06.171888Z fa35e78 Draft marked ready
🔒 Security Review ✅ Completed 2026-09-15T19:17:04.402593Z fa35e78 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gyuheon0h gyuheon0h 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.

Did I miss a discussion on this? FYI -- I do agree this is a clearer name

@taegyunkim

Copy link
Copy Markdown
Contributor Author

Did I miss a discussion on this? FYI -- I do agree this is a clearer name

@gyuheon0h No, there was no prior discussion but this was split from #19736 to make diffs smaller and facilitate reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog A changelog entry is not required for this PR. Profiling Continous Profling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants