Skip to content

docs(otel): configure MongoDB sample sampling - #5551

Merged
jamescrosswell merged 1 commit into
getsentry:mainfrom
johnfinnerty-nz:jftc/issue-5407-otel-sampling
Sep 9, 2026
Merged

jamescrosswell merged 1 commit into
getsentry:mainfrom
johnfinnerty-nz:jftc/issue-5407-otel-sampling

Conversation

@johnfinnerty-nz

Copy link
Copy Markdown
Contributor

Summary

Configure trace sampling through the OpenTelemetry sampler in the MongoDB sample instead of setting SentryOptions.TracesSampleRate.

Closes #5407

Testing

  • Source contract check
  • git diff --check

The sample build was not run because this repository pins .NET SDK 10.0.400, while the available SDK is 8.0.424.

@github-actions github-actions Bot added the risk: low PR risk score: low label Sep 9, 2026
@codecov

codecov Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.76%. Comparing base (9683c36) to head (5056483).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5551   +/-   ##
=======================================
  Coverage   74.75%   74.76%           
=======================================
  Files         515      515           
  Lines       18963    18963           
  Branches     3694     3694           
=======================================
+ Hits        14176    14177    +1     
  Misses       3908     3908           
+ Partials      879      878    -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jamescrosswell

Copy link
Copy Markdown
Collaborator

Thanks @johnfinnerty-nz - much appreciated!

@jamescrosswell
jamescrosswell merged commit 0004ef8 into getsentry:main Sep 9, 2026
34 checks passed
@jamescrosswell jamescrosswell added the skip-changelog Suppress automatic changelog generation via Craft label Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low skip-changelog Suppress automatic changelog generation via Craft

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TracesSampleRate shouldn't be used in OTEL samples

2 participants