Document Node.js profiler ability to use uploaded source maps#35801
Open
Document Node.js profiler ability to use uploaded source maps#35801
Conversation
Contributor
Preview links (active after the
|
6c36a8a to
db11822
Compare
domalessi
reviewed
Apr 7, 2026
Contributor
domalessi
left a comment
There was a problem hiding this comment.
Left a few suggestions! Let me know if you have any Qs. Otherwise, apply those fixes and we should be good to go.
| {{< /tabs >}} | ||
|
|
||
| 4. Optional: Set up [Source Code Integration][4] to connect your profiling data with your Git repositories. | ||
| 4. A couple of minutes after you start your application, your profiles appear on the [APM > Profiler page][5]. If they do not, refer to the [Troubleshooting][9] guide. |
Contributor
There was a problem hiding this comment.
Suggested change
| 4. A couple of minutes after you start your application, your profiles appear on the [APM > Profiler page][5]. If they do not, refer to the [Troubleshooting][9] guide. | |
| 4. A couple of minutes after you start your application, your profiles appear on the [APM > Profiler page][5]. If they do not, see the [Troubleshooting][9] guide. |
| 5. A couple of minutes after you start your application, your profiles appear on the [APM > Profiler page][5]. If they do not, refer to the [Troubleshooting][9] guide. | ||
| 5. Optional: Set up [Source Code Integration][4] to connect your profiling data with your Git repositories. | ||
|
|
||
| 6. Optional: [Upload Source Maps][10] (in Preview.) If you use source maps and you deploy them with your application the profiler will read them and produce mapped locations in profiles. Source maps in `.map` files as well as inline source maps are both supported. If you want to reduce deployment sizes (typically in serverless environments) you can choose to not deploy source maps and instead upload them to Datadog. You need to use dd-trace version 5.93.0 or newer for uploaded source maps to work, and your deployed source files still must contain the `@sourceMappingURL` annotation as an indication that they need to be mapped using the uploaded maps. |
Contributor
There was a problem hiding this comment.
Suggested change
| 6. Optional: [Upload Source Maps][10] (in Preview.) If you use source maps and you deploy them with your application the profiler will read them and produce mapped locations in profiles. Source maps in `.map` files as well as inline source maps are both supported. If you want to reduce deployment sizes (typically in serverless environments) you can choose to not deploy source maps and instead upload them to Datadog. You need to use dd-trace version 5.93.0 or newer for uploaded source maps to work, and your deployed source files still must contain the `@sourceMappingURL` annotation as an indication that they need to be mapped using the uploaded maps. | |
| 6. Optional: [Upload Source Maps][10] (Preview). If you use source maps, the profiler reads them and produces mapped locations in profiles. Source maps in `.map` files and inline source maps are both supported. To reduce deployment sizes (for example, in serverless environments), you can choose not to deploy source maps and instead upload them to Datadog. | |
| **Note**: Uploaded source maps require dd-trace version 5.93.0 or newer. Your deployed source files must also contain the `@sourceMappingURL` annotation so the profiler knows to use the uploaded maps. |
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?
I'm documenting the ability for the Node.js profiler to use uploaded source maps.
As a minor edit, I'm also moving the optional steps to the end of the list of steps (in this case, reversing the orders of steps 4 and 5, so 5 and 6 are now the optional ones.)
Note for reviewers:
The link for source map uploads points to a page in the RUM guide, as that's the one that discusses source map uploading. While this is a minimal edit that can link to that documentation from profiler documentation, it raises few questions:
Merge instructions
Merge readiness:
For Datadog employees:
Your branch name MUST follow the
<name>/<description>convention and include the forward slash (/). Without this format, your pull request will not pass CI, the GitLab pipeline will not run, and you won't get a branch preview. Getting a branch preview makes it easier for us to check any issues with your PR, such as broken links.If your branch doesn't follow this format, rename it or create a new branch and PR.
[6/5/2025] Merge queue has been disabled on the documentation repo. If you have write access to the repo, the PR has been reviewed by a Documentation team member, and all of the required checks have passed, you can use the Squash and Merge button to merge the PR. If you don't have write access, or you need help, reach out in the #documentation channel in Slack.
AI assistance
Additional notes