Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUM-3470 feat: Head-based sampling #1794

Merged
merged 10 commits into from
Apr 26, 2024

Conversation

ncreated
Copy link
Member

@ncreated ncreated commented Apr 24, 2024

What and why?

📦 Merging the head-based sampling feature.

Solves #1713

⚠️ This feature changes how child spans are sampled

With head-based sampling, the decision to keep or drop the trace is determined from the first span of the trace, the head, when the trace is created. This is not compatible with how local spans sampling used to work before, where each span was sampled individually, without considering sampling of the parent span.

In practise, this PR will change the result of following usages:

  • In local tracing using, now all child spans will be dropped or kept respectively to the sampling decision determined for the root span (using tracer sample rate).
  • In distributed tracing, if the distributed trace starts with a local active span, the whole trace will be sampled using tracer sample rate.

How?

CHANGELOG.md update + merge of following work (no code review required):

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes

Custom CI job configuration (optional)

  • Run unit tests for Core, RUM, Trace, Logs, CR and WVT
  • Run unit tests for Session Replay
  • Run integration tests
  • Run smoke tests
  • Run tests for tools/

@ncreated ncreated self-assigned this Apr 24, 2024
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Apr 24, 2024

Datadog Report

Branch report: ncreated/RUM-3470/head-based-sampling
Commit report: 353dbec
Test service: dd-sdk-ios

✅ 0 Failed, 3032 Passed, 0 Skipped, 11m 35.24s Wall Time
🔻 Test Sessions change in coverage: 9 decreased, 5 increased

🔻 Code Coverage Decreases vs Default Branch (9)

This report shows up to 5 code coverage decreases.

  • test DatadogCoreTests tvOS 79.29% (-0.33%) - Details
  • test DatadogLogsTests tvOS 45.1% (-0.27%) - Details
  • test DatadogLogsTests iOS 45.05% (-0.27%) - Details
  • test DatadogRUMTests tvOS 80.84% (-0.19%) - Details
  • test DatadogCrashReportingTests iOS 27.71% (-0.18%) - Details

…mpling-part2-with-new-init

RUM-3470 feat: Head-based sampling for manual distributed tracing
@ncreated ncreated marked this pull request as ready for review April 26, 2024 12:31
@ncreated ncreated requested review from a team as code owners April 26, 2024 12:31
ganeshnj
ganeshnj previously approved these changes Apr 26, 2024
* develop: (43 commits)
  Update apiSurface files for Swift and Objective-C
  Update dependency-manager-tests/spm/Shared/DatadogSetup.swift
  Bumped version to 2.10.0
  Update CHANGELOG for 2.10.0 release
  Revert nil interface
  Revert "Lock identifier assertion to default device"
  Lock identifier assertion to default device
  Tests for store update
  Fix lint
  Update store version
  Fix color SR identifier
  PR fixes
  Synchronize access to Datadog.verbosityLevel fixing issue #1549
  RUM-3134 attach vc to window
  Fix deployment target on SPM project
  Apply suggestions from code review
  apply cr suggestions
  Documentation update
  PR fixes
  Remove failing test
  ...
@ncreated ncreated merged commit 4506efa into develop Apr 26, 2024
8 checks passed
@ncreated ncreated deleted the ncreated/RUM-3470/head-based-sampling branch April 26, 2024 13:43
@ganeshnj ganeshnj mentioned this pull request May 2, 2024
8 tasks
This was referenced May 7, 2024
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.

3 participants