Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 9 additions & 14 deletions content/en/integrations/guide/source-code-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,22 +476,17 @@
{{% /tab %}}
{{% tab "Continuous Profiler" %}}

You can see a source code preview for profile frames in the [Continuous Profiler][1].
You can see source code previews directly in [Continuous Profiler][1] flame graphs.

1. Navigate to [**APM** > **Profile Search**][2].
2. Hover your cursor over a method in the flame graph.
3. If needed, press `Opt` or `Alt` to enable the preview.
4. If you're using the GitHub or GitLab integrations, click **Connect to preview** to see inline code snippets directly in the flame graph.
1. Navigate to [**APM** > **Profiles** > **Explorer**][2].
2. Select the service you want to investigate.
3. Hover your cursor over a method in the flame graph.
4. Press `Opt` (on macOS) or `Ctrl` (on other operating systems) to lock the tooltip so you can interact with its contents.
5. If prompted, click **Connect to preview**. The first time you do this for a repository, you will be redirected to GitHub to **Authorize** the Datadog application.

Check warning on line 485 in content/en/integrations/guide/source-code-integration.md

View workflow job for this annotation

GitHub Actions / vale

Datadog.words

Use 'Datadog' or 'Datadog site' instead of 'Datadog application'.

Check warning on line 485 in content/en/integrations/guide/source-code-integration.md

View workflow job for this annotation

GitHub Actions / vale

Datadog.tense

Avoid temporal words like 'will'.
6. After authorizing, the source code preview appears in the tooltip.
7. Click the file link in the tooltip to open the full source code file in your repository.

{{< img src="integrations/guide/source_code_integration/profiler-source-code-preview.png" alt="Source code preview in the Continuous Profiler" style="width:100%;">}}

You can also see links from profile frames to their source repository. This is supported for profiles broken down by line, method, or file.

1. Navigate to [**APM** > **Profile Search**][2].
2. Hover your cursor over a method in the flame graph. A kebab icon with the **More actions** label appears on the right.
3. Click **More actions** > **View in repo** to open the trace in its source code repository.

{{< img src="integrations/guide/source_code_integration/profiler-link-to-git.png" alt="Link to GitHub from the Continuous Profiler" style="width:100%;">}}
Comment on lines -488 to -494
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The View in repo flow is technically still supported at the time of writing. Rather than overwhelming users with all the ways they can achieve the same goal, I chose to be opinionated and only advertise one.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds fair!

{{< img src="integrations/guide/source_code_integration/profiler-source-code-preview-2.png" alt="Source code preview in the Continuous Profiler" style="width:100%;">}}

[1]: /profiler/
[2]: https://app.datadoghq.com/profiling/explorer
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading