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

RUMM-3194 add sampling rate on Tracer #1259

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

xgouchet
Copy link
Member

What and why?

Allow customer sampling their traces on the mobile side

How?

A brief description of implementation details of this PR.

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
  • Run integration tests
  • Run smoke tests

@xgouchet xgouchet requested a review from a team as a code owner April 20, 2023 08:51
Copy link
Member

@fuzzybinary fuzzybinary left a comment

Choose a reason for hiding this comment

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

Do spans affect their children? If so, do we need to check / test the spans created by the URLSession delegate, and make sure the sampled Spans get encoded to the W3C / b3 headers?

@@ -18,6 +20,9 @@ extension String: AllowedSpanAttributeValue {}
extension UInt64: AllowedSpanAttributeValue {}
extension Int: AllowedSpanAttributeValue {}

// Only numeric values are allowed for `span.ç_dd.*`.
Copy link
Member

Choose a reason for hiding this comment

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

Is that supposed to be ç_dd or just _dd

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed thanks.

@xgouchet
Copy link
Member Author

Do spans affect their children? If so, do we need to check / test the spans created by the URLSession delegate, and make sure the sampled Spans get encoded to the W3C / b3 headers?

The trace's sampling is being handled by the root span, meaning that this is going to be handled automatically by APM's logic on DD servers

@xgouchet xgouchet force-pushed the xgouchet/RUMM-3194/tracer_sampling_rate branch from c8b7032 to ed6c70e Compare April 21, 2023 09:30
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Apr 21, 2023

Datadog Report

Branch report: xgouchet/RUMM-3194/tracer_sampling_rate
Commit report: ed6c70e

dd-sdk-ios: 0 Failed, 0 New Flaky, 116 Passed, 0 Skipped, 3m 50.06s Wall Time

@xgouchet xgouchet requested a review from fuzzybinary April 21, 2023 10:00
Copy link
Member

@maxep maxep left a comment

Choose a reason for hiding this comment

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

Nice, thanks @xgouchet!

@xgouchet xgouchet merged commit cc1ef5d into develop Apr 24, 2023
@ncreated ncreated mentioned this pull request Apr 26, 2023
6 tasks
@maxep maxep mentioned this pull request Apr 26, 2023
6 tasks
@maxep maxep mentioned this pull request May 17, 2023
6 tasks
@xgouchet xgouchet deleted the xgouchet/RUMM-3194/tracer_sampling_rate branch September 12, 2023 09:14
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