-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[DOCS-12582] Agentic Onboarding RUM #32743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
54291c9
agentic onboarding for browser
rtrieu a996f0e
add to mobile (android,ios,rn)
rtrieu 6d56a5e
remove unnecessary pages
rtrieu 6565782
change link browser
rtrieu 4c91db7
add setup links to main et page
rtrieu b12e730
Merge branch 'master' into rtrieu/docs-12582-agentic-onboarding-rum
rtrieu 95296f2
add agentic onboarding link to et
rtrieu 4357d4c
fix link
rtrieu 8a83a75
Apply suggestions from code review
rtrieu 5c842a6
clean up
rtrieu 737ed64
no react
rtrieu 5a0c79e
update claude instructions
rtrieu 1984d57
update for react
rtrieu 4730798
Merge branch 'master' into rtrieu/docs-12582-agentic-onboarding-rum
rtrieu 76153f0
Merge branch 'master' into rtrieu/docs-12582-agentic-onboarding-rum
domalessi 016c372
reconfig using new region parameterization
domalessi bb89cc4
remove unused link in rn
rtrieu 75ccaa7
Apply suggestions from code review
rtrieu c37f81a
add missing steps for claude
rtrieu 827860a
Merge branch 'rtrieu/docs-12582-agentic-onboarding-rum' of github.com…
rtrieu 79cfe22
Apply suggestions from code review
rtrieu 17e552f
Apply suggestions from code review
rtrieu 6fa82db
Apply suggestions from code review
rtrieu 98a0161
Merge branch 'rtrieu/docs-12582-agentic-onboarding-rum' of github.com…
rtrieu c32448b
Apply suggestions from code review
rtrieu b65f98b
Apply suggestions from code review
rtrieu 9f6cab8
Apply suggestions from code review
rtrieu 589d7da
Apply suggestions from code review
rtrieu 70f6082
Merge branch 'master' into rtrieu/docs-12582-agentic-onboarding-rum
rtrieu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
domalessi marked this conversation as resolved.
Show resolved
Hide resolved
|
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,120 @@ | ||
| --- | ||
| title: Agentic Onboarding Setup | ||
| description: Set up the Datadog MCP server to instrument your frontend applications with coding agents like Cursor or Claude Code. | ||
|
|
||
| --- | ||
|
|
||
| {{< callout btn_hidden="true" header="Join the Preview!">}} | ||
| Agentic Onboarding is in Preview. | ||
| {{< /callout >}} | ||
|
|
||
| {{< site-region region="gov" >}} | ||
| <div class="alert alert-danger">Agentic Onboarding is not available in the selected site ({{< region-param key="dd_site_name" >}}) at this time.</div> | ||
| {{< /site-region >}} | ||
|
|
||
| ## Overview | ||
|
|
||
| Agentic Onboarding lets LLM coding agents instrument your frontend applications for [Error Tracking][3], [Real User Monitoring (RUM)][4], and [Product Analytics][5] with a single prompt. | ||
|
|
||
| Your coding assistant, such as [Cursor][1] or [Claude Code][2], detects your project's frameworks, adds configuration, and provisions required tokens and apps directly from your IDE. | ||
|
|
||
| ## Supported frameworks | ||
| Agentic Onboarding is available for the following frameworks: Android, Angular, iOS, Next.js, React, Svelte, Vanilla JS, and Vue. | ||
|
|
||
| ## Setup | ||
|
|
||
| ### Install the Datadog Onboarding MCP server | ||
|
|
||
| To install the Datadog Onboarding Model Context Protocol (MCP) server, follow the steps for your coding assistant: | ||
|
|
||
| {{< tabs >}} | ||
| {{% tab "Cursor" %}} | ||
| {{< site-region region="gov" >}} | ||
| <div class="alert alert-danger">Agentic Onboarding is not available in the selected site ({{< region-param key="dd_site_name" >}}) at this time.</div> | ||
| {{< /site-region >}} | ||
|
|
||
| {{< site-region region="us,us3,us5,eu,ap1,ap2" >}} | ||
| 1. Copy and paste the following deeplink into your browser: | ||
|
|
||
| <pre> | ||
| <code> | ||
| {{< region-param key=cursor_mcp_install_deeplink >}} | ||
| </code> | ||
| </pre> | ||
|
|
||
| 2. In Cursor, click **Install** for the **datadog-onboarding-{{< region-param key=dd_datacenter_lowercase >}}** server. | ||
| 3. If the MCP server shows a **Needs login** link, select it and complete the OAuth flow. When prompted, choose **Open** to continue and grant access to your Datadog account. | ||
| 4. After authentication, return to Cursor and confirm that MCP tools appear under the **datadog-onboarding-{{< region-param key=dd_datacenter_lowercase >}}** server. | ||
| {{< /site-region >}} | ||
|
|
||
| {{% /tab %}} | ||
|
|
||
| {{% tab "Claude Code" %}} | ||
| {{< site-region region="gov" >}} | ||
| <div class="alert alert-danger">Agentic Onboarding is not available in the selected site ({{< region-param key="dd_site_name" >}}) at this time.</div> | ||
| {{< /site-region >}} | ||
|
|
||
| {{< site-region region="us,us3,us5,eu,ap1,ap2" >}} | ||
| 1. Open an active Claude Code session with the /mcp command: | ||
|
|
||
| <pre> | ||
| <code> | ||
| claude mcp add --transport http datadog-onboarding-{{< region-param key=dd_datacenter_lowercase >}} "https://mcp.{{< region-param key=dd_site >}}/api/unstable/mcp-server/mcp?toolsets=onboarding" | ||
| </code> | ||
| </pre> | ||
|
|
||
| 2. Select the MCP server installed in Step 1. You should see a `disconnected - Enter to login` message. Press <kbd>Enter</kbd>. | ||
| 3. When you see the option to authenticate, press <kbd>Enter</kbd>. This brings you to the OAuth screen. | ||
rtrieu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 4. After authentication, choose **Open** to continue and grant access to your Datadog account. | ||
| 5. Confirm that MCP tools appear under the **datadog-onboarding-{{< region-param key=dd_datacenter_lowercase >}}** server. | ||
| {{< /site-region >}} | ||
|
|
||
| {{% /tab %}} | ||
| {{< /tabs >}} | ||
|
|
||
| ### Set up your project | ||
|
|
||
| Your AI coding agent can help configure Datadog for your project. When you provide a setup prompt, the agent: | ||
|
|
||
| - Analyzes your project and identifies the framework, language, and bundler | ||
| - Calls the MCP tool and requests permission before running | ||
| - Applies the configuration changes specified by the tool | ||
| - Provides steps to verify that your application is sending telemetry to Datadog | ||
|
|
||
| **Note**: Your coding agent makes changes locally but does not commit them. | ||
|
|
||
| To get started: | ||
| 1. Choose the product you want to use and paste its setup prompt into your AI agent: | ||
|
|
||
| {{< tabs >}} | ||
| {{% tab "Error Tracking" %}} | ||
| ```console | ||
| Add Datadog Error Tracking to my project | ||
| ``` | ||
| {{% /tab %}} | ||
|
|
||
| {{% tab "Real User Monitoring" %}} | ||
| ```console | ||
| Add Datadog Real User Monitoring to my project | ||
| ``` | ||
| {{% /tab %}} | ||
|
|
||
| {{% tab "Product Analytics" %}} | ||
| ```console | ||
| Add Datadog Product Analytics to my project | ||
| ``` | ||
| {{% /tab %}} | ||
| {{< /tabs >}} | ||
|
|
||
| 2. Review and accept each action your AI agent proposes to complete the setup process. | ||
|
|
||
| ### Deploy your app to production | ||
|
|
||
| Commit the changes to your repository and configure the provided environment variables in your production environment. | ||
|
|
||
| [1]: https://cursor.com/ | ||
| [2]: https://claude.ai/ | ||
| [3]: /error_tracking/frontend/ | ||
| [4]: /real_user_monitoring/ | ||
| [5]: /product_analytics/ | ||
|
|
||
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
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
6 changes: 6 additions & 0 deletions
6
content/en/real_user_monitoring/application_monitoring/agentic_onboarding.md
rtrieu marked this conversation as resolved.
Show resolved
Hide resolved
|
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| title: Agentic Onboarding for RUM | ||
| description: Instrument your frontend application with one prompt using LLM coding agents like Cursor or Claude. | ||
| --- | ||
|
|
||
| {{< include-markdown "agentic_onboarding/setup" >}} |
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.