Skip to content

add ingestion mechanism documentation for rust#36898

Open
bantonsson wants to merge 1 commit into
masterfrom
bjorn.antonsson/rust-ingestion-mechanisms-sampling
Open

add ingestion mechanism documentation for rust#36898
bantonsson wants to merge 1 commit into
masterfrom
bjorn.antonsson/rust-ingestion-mechanisms-sampling

Conversation

@bantonsson
Copy link
Copy Markdown
Contributor

@bantonsson bantonsson commented May 21, 2026

What does this PR do? What is the motivation?

This adds APM ingestion mechanism documentation for the rust language.

Merge instructions

Merge readiness:

  • Ready for merge

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

@bantonsson bantonsson requested a review from a team as a code owner May 21, 2026 10:45
@github-actions
Copy link
Copy Markdown
Contributor

Preview links (active after the build_preview check completes)

Modified Files

@janine-c janine-c self-assigned this May 21, 2026
Copy link
Copy Markdown
Contributor

@janine-c janine-c left a comment

Choose a reason for hiding this comment

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

Looks great! Just one formatting inconsistency I noticed, but that's definitely a tiny nit 🙂

{{% tab "Rust" %}}
For Rust applications, set by-service and by-operation name **span** sampling rules with the `DD_SPAN_SAMPLING_RULES` environment variable.

For example, to collect 100% of the spans from the service named `my-service`, for the operation `http.request`, up to 50 spans per second:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
For example, to collect 100% of the spans from the service named `my-service`, for the operation `http.request`, up to 50 spans per second:
For example, to collect `100%` of the spans from the service named `my-service`, for the operation `http.request`, up to `50` spans per second:

I noticed we format it this way for the other languages, so we might as well do it here too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants