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

[ci-visibility] Link CI Visibility and RUM #1706

Merged

Conversation

juan-fernandez
Copy link
Collaborator

@juan-fernandez juan-fernandez commented Dec 1, 2021

What does this PR do?

  • Pass trace id as context to cypress so that RUM can read its value.
  • Set test.is_rum_active if RUM is active.
  • Dispatch beforeunload event after test suite is finished to make sure RUM events are flushed.

Motivation

Link CI Visibility and RUM

Plugin Checklist

Additional Notes

@juan-fernandez juan-fernandez changed the title [ci-visibility] CI Visibility - RUM PoC [ci-visibility] Link CI Visibility and RUM Dec 9, 2021
@juan-fernandez juan-fernandez marked this pull request as ready for review December 9, 2021 12:08
@juan-fernandez juan-fernandez requested a review from a team as a code owner December 9, 2021 12:08
rochdev
rochdev previously approved these changes Dec 9, 2021
@juan-fernandez
Copy link
Collaborator Author

could you have another look @rochdev ? I only changed the way we pass the trace id to decimal: 700b499. This is the way the event platform provides the trace id, and changing from hex to decimal and viceversa is a problem with big numbers in javascript, so it's better to just stick with that format. I also merged master

@juan-fernandez juan-fernandez requested a review from rochdev January 3, 2022 15:58
@codecov
Copy link

codecov bot commented Jan 3, 2022

Codecov Report

Merging #1706 (a6ee225) into master (854783f) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1706   +/-   ##
=======================================
  Coverage   93.49%   93.49%           
=======================================
  Files         157      157           
  Lines        6652     6655    +3     
=======================================
+ Hits         6219     6222    +3     
  Misses        433      433           
Impacted Files Coverage Δ
packages/datadog-plugin-cypress/src/plugin.js 100.00% <100.00%> (ø)
packages/dd-trace/src/plugins/util/test.js 90.47% <100.00%> (+0.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 854783f...a6ee225. Read the comment docs.

@juan-fernandez juan-fernandez merged commit 21179be into master Jan 4, 2022
@juan-fernandez juan-fernandez deleted the juan-fernandez/cypress-browser-instrumentation branch January 4, 2022 09:05
@juan-fernandez juan-fernandez mentioned this pull request Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants