Skip to content

[LLM Obs] Document code evaluators - #41259

Open
cdfox wants to merge 5 commits into
masterfrom
christopher.fox/code-evaluations-docs
Open

cdfox wants to merge 5 commits into
masterfrom
christopher.fox/code-evaluations-docs

Conversation

@cdfox

@cdfox cdfox commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do? What is the motivation?

Adds a Code Evaluators page for Agent Observability. Code evaluators run a JavaScript function on spans, traces, or sessions instead of calling an LLM judge, which suits checks with a definite answer like empty tool results or keyword matches.

The new page covers:

  • Creating a code evaluator from the Code Evaluations templates or from Scratch with the Type selector
  • The __evalDeterministic(data) function: input shape per scope, and how return values map to Boolean, score, categorical, and JSON results
  • Example functions for each scope
  • Testing in the editor, querying results, and creating code evaluators through the custom evaluator API

It also adds the page to the Evaluations nav, the Evaluations overview, and a pointer from the Custom LLM-as-a-Judge page.

Merge readiness

  • Ready for merge

AI assistance

Drafted with Claude Code from the feature's implementation, then reviewed by the author.

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

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cdfox
cdfox requested a review from a team as a code owner October 30, 2026 19:45
@github-actions github-actions Bot added the Architecture Everything related to the Doc backend label Oct 30, 2026
cdfox and others added 2 commits October 30, 2026 15:54
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cdfox

cdfox commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

/review

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

🤖 Automated review by Claude. AI-generated; verify before acting.

Nice, well-structured addition. Frontmatter, menu entry, cross-links, and reference-style links all look good. A couple of minor clarity and style nits inline — nothing blocking.

Reviewed 6afdf5191c4f260fabe708b9b346f566083ed9c9 — workflow run

cdfox and others added 2 commits October 30, 2026 16:42
@hestonhoffman hestonhoffman added the editorial review Waiting on a more in-depth review label Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Architecture Everything related to the Doc backend editorial review Waiting on a more in-depth review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants