[DOCS-15364] Update Bits Remediation docs - #39189
Conversation
Add sections on infrastructure remediation actions and Bits Guardrails, refresh the code fix workflow copy, and add updated screenshots.
Preview links (active after the
|
|
/review |
There was a problem hiding this comment.
🤖 Automated review by Claude. AI-generated; verify before acting.
Content is clear and well-structured. A few small style nits and a phrasing question inline — no blockers.
Reviewed f5dd8f6ea97c52ff8f26cbe47a1058227daead06 — workflow run
|
|
||
| Bits Investigation integrates with [Bits Code][2] to generate code fixes. Bits connects to your source code provider to create, update, and iterate on production-ready pull requests, based on existing issues detected by Datadog. | ||
|
|
||
| Code fixes are automatically generated by default for investigations with code-related root causes. To manually generate code fixes at your own discretion instead, disable automatic code fix generation in [Settings][3]. |
There was a problem hiding this comment.
Style: "at your own discretion" is filler and can be dropped; the surrounding sentence already conveys the choice.
| Code fixes are automatically generated by default for investigations with code-related root causes. To manually generate code fixes at your own discretion instead, disable automatic code fix generation in [Settings][3]. | |
| Code fixes are automatically generated by default for investigations with code-related root causes. To manually generate code fixes instead, disable automatic code fix generation in [Settings][3]. |
There was a problem hiding this comment.
I'd also rephrase the beginning of this sentence to "By default, Bits Investigations automatically generates code fixes..." to make the sentence active rather than passive 🙂
|
|
||
| Code fixes are automatically generated by default for investigations with code-related root causes. To manually generate code fixes at your own discretion instead, disable automatic code fix generation in [Settings][3]. | ||
|
|
||
| 1. [Set up Bits Code][1]. After Bits determines a code-related root cause, a suggested code fix is generated in next steps by default. |
There was a problem hiding this comment.
Suggestion: "in next steps" reads ambiguously — is Next Steps a UI element in the investigation? If so, capitalize it (and match on line 25) so users know where to look. If it's not a labeled section, consider rephrasing to "as a suggested next step".
|
|
||
| ## Take action on your infrastructure | ||
|
|
||
| <div class="alert alert-danger">One-click actions are in Preview.</div> |
There was a problem hiding this comment.
Suggestion: The top of the page uses the {{< callout >}} shortcode for the Preview notice, but this section (and the Guardrails section on line 63) uses a raw <div class="alert alert-danger">. Consider using a consistent pattern across the page — either the shortcode or the inline HTML — so the visual treatment of Preview callouts matches.
| - Opening Jira tickets | ||
|
|
||
| Bits Investigation automatically pulls relevant context from the investigation and your connected integrations to prefill messages, incident descriptions, and ticket metadata. This reduces manual effort, ensures consistency, and accelerates response time. | ||
| Bits automatically pulls relevant context from the investigation and your connected integrations to prefill messages, incident descriptions, and ticket metadata. This reduces manual effort, helps ensure consistency, and accelerates response time. |
There was a problem hiding this comment.
Style: Nice catch swapping "ensures" → "helps ensure" here — matches the Vale rule. No change needed.
This comment has been minimized.
This comment has been minimized.
janine-c
left a comment
There was a problem hiding this comment.
Hey Jessica, this looks awesome! I made some minor writing and structure suggestions. Some of them get a little into some tech writing inside baseball, so if you need any help implementing any fixes or want to chat over options, don't hesitate to let me know!
|
|
||
| Bits Investigation integrates with [Bits Code][2] to generate code fixes. Bits connects to your source code provider to create, update, and iterate on production-ready pull requests, based on existing issues detected by Datadog. | ||
|
|
||
| Code fixes are automatically generated by default for investigations with code-related root causes. To manually generate code fixes at your own discretion instead, disable automatic code fix generation in [Settings][3]. |
There was a problem hiding this comment.
I'd also rephrase the beginning of this sentence to "By default, Bits Investigations automatically generates code fixes..." to make the sentence active rather than passive 🙂
|
|
||
| Code fixes are automatically generated by default for investigations with code-related root causes. To manually generate code fixes at your own discretion instead, disable automatic code fix generation in [Settings][3]. | ||
|
|
||
| 1. [Set up Bits Code][1]. After Bits determines a code-related root cause, a suggested code fix is generated in next steps by default. |
There was a problem hiding this comment.
It's a bit hard to tell what this list is for. It's helpful to be really clear about when information is purely conceptual (in which case, maybe this list would be to give users an idea of the sequence of events involved in using Bits Remediation) or procedural (in which case, maybe this is a list of action items for the user to accomplish something). This list is a little murky with that distinction, which can be confusing for users. I think if we made it clearer, it would be really helpful!
There was a problem hiding this comment.
Adding an intro to the list like so!
To start using code fixes:
- Set up Bits Code ...
- ...
| 1. Chat with Bits within the code session to update the suggested code fix. | ||
| 1. Create a pull request for review and merge when ready. | ||
|
|
||
| {{< img src="bits_ai/bits_remediation/suggested_code_fix.png" alt="Bits Investigation hypothesis tree showing a root cause conclusion with a suggested code fix and other next steps" style="width:100%;" >}} |
There was a problem hiding this comment.
Maybe we can add an intro sentence before this image to explain exactly what it's showing?
| - **Manual recommendations**: Copy the suggested command (for example, a `kubectl patch` command) and run it in your own CLI. | ||
| - **One-click actions (Preview)**: Click **Run** to let Bits execute the suggested remediation action directly from the investigation context. | ||
|
|
||
| {{< img src="bits_ai/bits_remediation/one_click_action.png" alt="A suggested remediation action with instructions to restart a deployment, a Run button, and a Verify Resolution button" style="width:100%;" >}} |
There was a problem hiding this comment.
I'm wondering if users might find this confusing because the Run button we're talking about is greyed out? Is there an available example we can use here where that button is usable?
There was a problem hiding this comment.
The only available examples are in staging/org2, not demo org -- we didn't want anyone in demo org to be able to run these actions. I can work with engineering to make the button not grayed out in demo org but not be able to apply actions, but would it be possible to start with this screenshot?
| - **Manual recommendations**: Copy the suggested command (for example, a `kubectl patch` command) and run it in your own CLI. | ||
| - **One-click actions (Preview)**: Click **Run** to let Bits execute the suggested remediation action directly from the investigation context. | ||
|
|
||
| {{< img src="bits_ai/bits_remediation/one_click_action.png" alt="A suggested remediation action with instructions to restart a deployment, a Run button, and a Verify Resolution button" style="width:100%;" >}} |
There was a problem hiding this comment.
| {{< img src="bits_ai/bits_remediation/one_click_action.png" alt="A suggested remediation action with instructions to restart a deployment, a Run button, and a Verify Resolution button" style="width:100%;" >}} | |
| {{< img src="bits_ai/bits_remediation/one_click_action.png" alt="A suggested remediation action with instructions to restart a deployment, and a Run button to restart it directly from the investigation" style="width:100%;" >}} |
We don't mention the Verify Resolution button in the copy (maybe we should?), so it doesn't make sense to only mention it in the alt text. I think doing that might make a user on a screen reader worry that they missed something if they start to wonder what that button does but can't find answers in the docs.
There was a problem hiding this comment.
this is related to the "Validate that issues were resolved" section on the bottom!
|
|
||
| Guardrails require the `Guardrails Read` and `Guardrails Write` permissions. To create a guardrail: | ||
|
|
||
| 1. **Choose the actions to target**: Select one or more available actions for an integration (for example, Kubernetes) for the guardrail to target. |
There was a problem hiding this comment.
Can we add a step that tells the user where to go in Datadog to access these options? That will help users who come directly to this section through search 🙂
There was a problem hiding this comment.
@jesshsiao Ah, sorry, I was talking about where the Bits Guardrail options are! But the location of the permissions is helpful too!
|
|
||
| ## Validate that issues are resolved | ||
|
|
||
| Bits can verify whether a remediation action was applied successfully, and whether the original issue was resolved. |
There was a problem hiding this comment.
The heading here makes it sound like there's a task for users to do to validate, but then it isn't clear how a user actually does that. Maybe there was more that was supposed to be here?
Co-authored-by: Janine Chan <64388808+janine-c@users.noreply.github.com>
Co-authored-by: Janine Chan <64388808+janine-c@users.noreply.github.com>
Use consistent Preview callout styling, clarify the code fix steps and image intros, add guardrails permission navigation, and clarify how to validate a resolved issue.
|
@janine-c updated content per your suggestions! let me know if you see anything else that needs to be changed :) |
janine-c
left a comment
There was a problem hiding this comment.
Beeyootiful, thank you so much for addressing that feedback so quickly! I just have one comment I needed to clarify from last time, but overall this is looking marvellous!
|
|
||
| Guardrails require the `Guardrails Read` and `Guardrails Write` permissions. To create a guardrail: | ||
|
|
||
| 1. **Choose the actions to target**: Select one or more available actions for an integration (for example, Kubernetes) for the guardrail to target. |
There was a problem hiding this comment.
@jesshsiao Ah, sorry, I was talking about where the Bits Guardrail options are! But the location of the permissions is helpful too!
What does this PR do? What is the motivation?
Fixes DOCS-15364
Updates the Bits Remediation page:
Merge readiness
For Datadog employees:
<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./reviewto run an automated check that catches common issues before a Documentation team member reviews your PR.AI assistance
Content drafted and edited with Claude Code, based on my direction and review.
Additional notes