Visitar URL original
[APPSEC-71422] Document Java User.setUser for user info and blocking by jandro996 · Pull Request #41192 · DataDog/documentation · GitHub
Skip to content

[APPSEC-71422] Document Java User.setUser for user info and blocking - #41192

Merged
jandro996 merged 1 commit into
masterfrom
alejandro.gonzalez/java-appsec-set-user-docs
Nov 5, 2026
Merged

jandro996 merged 1 commit into
masterfrom
alejandro.gonzalez/java-appsec-set-user-docs

Conversation

@jandro996

Copy link
Copy Markdown
Member

What does this PR do? What is the motivation?

Related to APPSEC-71422

The Java tab of User Monitoring and Protection only showed the OpenTracing + Blocking.forUser().blockIfMatch() approach. Since dd-trace-java v1.48.0 (DataDog/dd-trace-java#8482), datadog.appsec.api.user.User.setUser(id, metadata) sets the user tags and performs user blocking in a single call, like the set_user APIs documented for the other languages.

This PR makes User.setUser() the recommended Java API, documents its requirements (tracer and dd-trace-api v1.48.0+, metadata keys without the usr. prefix, BlockingException must not be caught, AAP enabled for blocking), and keeps the previous sample in a collapsed "Earlier versions (before v1.48.0)" section.

Merge readiness

  • Ready for merge

AI assistance

Used Claude Code to draft the change; behavior was verified against the dd-trace-java source and reviewed manually.

For Datadog employees:

  • ⚠️ Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR.
  • 🤖 New: Comment with /review to run an automated check that catches common issues before a Documentation team member reviews your PR.

Additional notes

Only content/en is changed; translations are handled by the translation pipeline.

@github-actions

Copy link
Copy Markdown
Contributor

Preview links (active after the build_preview check completes)

Modified Files

@jandro996
jandro996 marked this pull request as ready for review October 30, 2026 08:40
@jandro996
jandro996 requested a review from a team as a code owner October 30, 2026 08:40
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-10-30T08:48:36.307844Z 26e00a7 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.

@jandro996
jandro996 requested review from fukasawa123 and removed request for fukasawa123 October 30, 2026 08:41
@jandro996
jandro996 merged commit b5e0823 into master Nov 5, 2026
34 checks passed
@jandro996
jandro996 deleted the alejandro.gonzalez/java-appsec-set-user-docs branch November 5, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants