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

✨ [RUMF-1306] Send the tracing sample rate in _dd.rule_psr for resources #1669

Merged
merged 22 commits into from
Aug 23, 2022

Conversation

liywjl
Copy link
Contributor

@liywjl liywjl commented Aug 2, 2022

Motivation

We want to be able to display the sample rate on RUM BE

Changes

Pull sampleRate out of configuration and set it to the rumContext under _dd.rule_psr if present

Updated Schema

DataDog/rum-events-format#83

Testing

  • Local
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

@liywjl liywjl marked this pull request as ready for review August 2, 2022 13:11
@liywjl liywjl requested a review from a team as a code owner August 2, 2022 13:11
@codecov-commenter
Copy link

codecov-commenter commented Aug 3, 2022

Codecov Report

Merging #1669 (29273fe) into main (f86b32a) will increase coverage by 0.00%.
The diff coverage is 93.75%.

@@           Coverage Diff           @@
##             main    #1669   +/-   ##
=======================================
  Coverage   90.85%   90.86%           
=======================================
  Files         128      128           
  Lines        4777     4782    +5     
  Branches     1067     1067           
=======================================
+ Hits         4340     4345    +5     
  Misses        437      437           
Impacted Files Coverage Δ
packages/rum-core/src/boot/startRum.ts 27.02% <0.00%> (ø)
...rumEventsCollection/resource/resourceCollection.ts 97.56% <100.00%> (+0.33%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@liywjl liywjl changed the title [RUMF-1306] Send the tracing sample rate in _dd.rule_psr for resources ✨ [RUMF-1306] Send the tracing sample rate in _dd.rule_psr for resources Aug 5, 2022
@liywjl liywjl merged commit 0169b4b into main Aug 23, 2022
@liywjl liywjl deleted the william/pass-sample-rate-to-rum-context branch August 23, 2022 15:06
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.

4 participants