refactor: fix layering violations in otel related to Span typechecking - #20343
emmettbutler wants to merge 2 commits into
Conversation
|
Codeowners resolved asResolved from the full PR diff against |
Circular import analysis
|
Dependency direction analysis
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d2a0ad0b9d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| Lets this module type-annotate the wrapped Datadog span without a runtime dependency on the | ||
| concrete ``ddtrace._trace.span.Span`` class. |
There was a problem hiding this comment.
Use plain text in the private protocol docstring
This private internal helper is not rendered by Sphinx, so the double-backtick literal violates the repository convention and adds editor-only markup; write ddtrace._trace.span.Span as plain text instead.
AGENTS.md reference: AGENTS.md:L44-L52
Useful? React with 👍 / 👎.
| class _LocalRootProtocol(Protocol): | ||
| """Structural interface for the ``_local_root`` a thread-context span sync needs.""" |
There was a problem hiding this comment.
Remove rST markup from the private helper docstring
Because _LocalRootProtocol is a private helper in an internal module rather than a Sphinx-rendered interface, its double-backtick markup conflicts with the repository's plain-prose requirement; spell _local_root without rST markup.
AGENTS.md reference: AGENTS.md:L44-L52
Useful? React with 👍 / 👎.
BenchmarksBenchmark execution time: 2026-09-15 19:02:46 Comparing candidate commit 91ab0d8 in PR branch Found 0 performance improvements and 1 performance regressions! Performance is the same for 44 metrics, 0 unstable metrics.
|
No description provided.