Skip to content

Remove AgentTracer.noopScope() sentinel#12060

Open
mcculls wants to merge 1 commit into
mcculls/cleanup-redis-advicefrom
mcculls/cleanup-noop-scope
Open

Remove AgentTracer.noopScope() sentinel#12060
mcculls wants to merge 1 commit into
mcculls/cleanup-redis-advicefrom
mcculls/cleanup-noop-scope

Conversation

@mcculls

@mcculls mcculls commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Motivation

This helps with switching between the two context manager approaches, since the checks now don't assume a particular implementation.

Additional Notes

To be merged in once #12008 is merged

Contributor Checklist

Jira ticket: [PROJ-IDENT]

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@mcculls
mcculls requested review from a team as code owners July 23, 2026 17:08
@mcculls mcculls added the comp: core Tracer core label Jul 23, 2026
@mcculls
mcculls requested review from mhlidd and removed request for a team July 23, 2026 17:08
@mcculls mcculls added tag: no release notes Changes to exclude from release notes type: refactoring labels Jul 23, 2026
@dd-octo-sts dd-octo-sts Bot added the tag: ai generated Largely based on code generated by an AI or LLM label Jul 23, 2026
@mcculls
mcculls requested a review from PerfectSlayer July 23, 2026 17:09

@datadog-official datadog-official Bot 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.

Datadog Autotest: WARN

Removing the exported AgentTracer.noopScope() method is source- and binary-incompatible for custom instrumentations compiled against the current bootstrap API: an upgraded agent can throw NoSuchMethodError when that instrumentation loads or calls the method. The replacement public NoopScope singleton requires downstream recompilation and does not preserve existing callers.

Open Bits AI session

🤖 Datadog Autotest · Commit 5ba19ea · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5ba19eaaf2

ℹ️ 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".

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

LGTM

@datadog-official

datadog-official Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

🎯 Code Coverage (details)
Patch Coverage: 33.33%
Overall Coverage: 57.11% (-12.62%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 5ba19ea | Docs | Datadog PR Page | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 13.92 s 13.87 s [-0.4%; +1.1%] (no difference)
startup:insecure-bank:tracing:Agent 12.89 s 12.97 s [-1.5%; +0.3%] (no difference)
startup:petclinic:appsec:Agent 16.78 s 16.65 s [+0.0%; +1.5%] (maybe worse)
startup:petclinic:iast:Agent 16.81 s 16.84 s [-1.3%; +0.9%] (no difference)
startup:petclinic:profiling:Agent 15.93 s 16.40 s [-8.8%; +3.1%] (unstable)
startup:petclinic:sca:Agent 16.32 s 16.75 s [-6.9%; +1.8%] (no difference)
startup:petclinic:tracing:Agent 16.05 s 16.05 s [-1.1%; +1.0%] (no difference)

Commit: 5ba19eaa · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

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

Labels

comp: core Tracer core tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants