Skip to content

Set Spring web span tags by id (tag registry rollout) - #13198

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
masterfrom
dougqh/spring-web-tag-ids
Nov 6, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
masterfrom
dougqh/spring-web-tag-ids

Conversation

@dougqh

@dougqh dougqh commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

What Does This Do

Spring Web MVC (3.1, 6.0) and Spring WebFlux now set their span tags with KnownTags ids instead of string literals. That's 7 call sites:

tag where
view.name, view.type Web MVC 3.1 and 6.0 SpringWebHttpServerDecorator (view render spans)
handler.type WebFlux HandlerAdapterAdvice
request.predicate WebFlux functional routes
event, message WebFlux client cancellation

Motivation

This is the next family moved onto ids, following the servlet/JSP PR. Every tag was already registered on the spring.view.render, spring.webflux.handler and spring.webflux.client span types, so the change is mechanical.

Additional Notes

🤖 Generated with Claude Code

@dougqh dougqh added tag: no release notes Changes to exclude from release notes type: refactoring inst: spring Spring instrumentation tag: ai generated Largely based on code generated by an AI or LLM labels Nov 4, 2026
@dougqh
dougqh marked this pull request as ready for review November 4, 2026 01:15
@dougqh
dougqh requested review from a team as code owners November 4, 2026 01:15
@dougqh
dougqh requested review from PerfectSlayer and ygree and removed request for a team November 4, 2026 01:15
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 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-11-04T01:17:35.896818Z f2b6261 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.

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

Bits Code Review: PASS

More details

Each replacement uses the registry ID matching its original tag name and retains the existing setter behavior for Spring MVC views and WebFlux handlers, routes, and cancellations.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit f2b6261

@datadog-official

datadog-official Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 59.99% (+0.00%)

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

@dd-octo-sts

dd-octo-sts Bot commented Nov 4, 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 14.90 s 14.72 s [+0.3%; +2.2%] (maybe worse)
startup:insecure-bank:tracing:Agent 13.56 s 13.71 s [-1.9%; -0.3%] (maybe better)
startup:petclinic:appsec:Agent 16.99 s 17.01 s [-1.1%; +0.9%] (no difference)
startup:petclinic:iast:Agent 16.79 s 17.01 s [-2.2%; -0.4%] (maybe better)
startup:petclinic:profiling:Agent 16.14 s 15.61 s [-5.0%; +11.8%] (unstable)
startup:petclinic:sca:Agent 17.02 s 16.89 s [-0.2%; +1.7%] (no difference)
startup:petclinic:tracing:Agent 16.12 s 15.90 s [-3.0%; +5.8%] (no difference)

Commit: b8a3cb3a · 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.

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

IDM reviewed

@dougqh
dougqh force-pushed the dougqh/spring-web-tag-ids branch from f2b6261 to b3b5413 Compare November 5, 2026 20:34
@dougqh
dougqh force-pushed the dougqh/known-tags-full-suffix branch from d983320 to 7e702ac Compare November 5, 2026 20:44
@dougqh
dougqh requested review from a team as code owners November 5, 2026 20:44
@dougqh
dougqh requested review from BridgeAR, dromanol and jandro996 and removed request for a team November 5, 2026 20:44
@dougqh
dougqh force-pushed the dougqh/spring-web-tag-ids branch from b3b5413 to 1cbcfc3 Compare November 5, 2026 20:50

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

Bits Code Review: FAIL

The constant rename leaves reflective bucket-hash validation filtering for _ID, silently excluding ordinary tag IDs from checks intended to cover the whole registry.

Open Bits AI session

🤖 Bits Code Review · Commit b3b5413


Findings that could not be posted inline

build-logic/tag-registry/src/main/kotlin/datadog/buildlogic/tagRegistry/KnownTagsEmitter.kt:47

P2 Update reflective ID discovery alongside the constant rename

Removing the ID suffix leaves TagMapBucketHashTest.knownTagIds() filtering fields with endsWith("_ID"). It now excludes ordinary IDs such as HTTP_METHOD and HTTP_ROUTE, silently weakening checks intended to validate every registered tag's bucket-hash uniqueness and slot placement. Update that collector to discover static long fields and validate them with KnownTagCodec.isKnown(), as TagMapTagHashTest already does. The required fix is outside the changed lines.

React: 👍 useful · 👎 wrong · 😕 unclear · 👀 right, but not acting on it

What each reaction means
  • 👍 Useful: correct, and you're fixing it or will.
  • 👎 Wrong: the finding is incorrect, for example the bug can't happen or the code was misread.
  • 😕 Unclear: you can't tell what it means or why it matters.
  • 👀 Right, not acting: correct, but intended, out of scope for this PR, a known risk, or too minor.

🤖 Bits Code Review · Open Bits AI session

@dougqh
dougqh removed request for a team and jandro996 November 5, 2026 23:42
Base automatically changed from dougqh/known-tags-full-suffix to master November 6, 2026 17:24
dougqh and others added 2 commits November 6, 2026 12:29
Spring Web MVC (3.1 and 6.0) and Spring WebFlux set view.name,
view.type, handler.type, request.predicate, and the WebFlux client's
cancellation event and message with KnownTags ids instead of string
literals. All were already registered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#13061 now names an id after its tag with no _ID suffix. Rename only;
the ids are the same values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dougqh
dougqh force-pushed the dougqh/spring-web-tag-ids branch from 1cbcfc3 to b8a3cb3 Compare November 6, 2026 17:30

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

Bits Code Review: PASS

More details

The Spring tag IDs resolve to the same keys as the replaced strings, and the wider constant rename remains consistent with the registry and its callers.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 1cbcfc3

@dougqh

dougqh commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-11-06 18:36:40 UTC ℹ️ Start processing command /merge


2026-11-06 18:36:45 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-11-06 20:20:54 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 3bb2f5c into master Nov 6, 2026
683 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the dougqh/spring-web-tag-ids branch November 6, 2026 20:20
@github-actions github-actions Bot added this to the 1.69.0 milestone Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inst: spring Spring instrumentation 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.

2 participants