Add LLM agent detection and markdown redirect for RUM pages#34620
Open
Add LLM agent detection and markdown redirect for RUM pages#34620
Conversation
Adds a <link rel="alternate" type="text/markdown"> tag and inline JS that detects known LLM crawler user-agents and redirects them to the existing .md version of the page. Scoped to /real_user_monitoring/ pages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
191d7ec to
33b1554
Compare
Contributor
|
I've recommended that Rick create a Jira card for this, since we would want to do this for all products if it's worth doing. My team would need to understand more about the problem being solved in order to make a decision. Thanks! |
Contributor
|
Thanks for the note, @jhgilbert ! I've added the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do? What is the motivation?
Adds LLM agent detection to RUM documentation pages that redirects crawlers to the existing
.mdversion of each page, providing cleaner markdown content for AI consumption.Two complementary mechanisms:
<link rel="alternate" type="text/markdown">tag in<head>for agents that parse HTML but don't execute JS.mdURLScoped to
/real_user_monitoring/pages only for initial rollout.Files changed
layouts/partials/llm-agent-redirect.html— New partial with link tag + JS redirectlayouts/_default/baseof.html— Conditional include for RUM pagesdocs/plans/2026-02-16-llm-agent-markdown-redirect-design.md— Design docMerge instructions
Merge readiness:
Additional notes
.mdendpoint already works in production (e.g.,docs.datadoghq.com/real_user_monitoring/application_monitoring/browser.md)<link>tag covers agents that parse HTML🤖 Generated with Claude Code