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

🐛 Do not trace requests when the session is not tracked #1131

Merged

Conversation

amortemousque
Copy link
Contributor

Motivation

Trace id / span id are added to every requests when the session is not tracked.
Some traces are missing the root browser span which prevent to compute metrics associated to the trace
To mitigate this issue we won't trace requests when the session is not tracked.

Changes

Update tracer to avoid tracing when the session is not tracked

Testing

Unit


I have gone over the contributing documentation.

@amortemousque amortemousque requested a review from a team as a code owner October 12, 2021 15:22
@codecov-commenter
Copy link

codecov-commenter commented Oct 13, 2021

Codecov Report

Merging #1131 (ca0d028) into main (45f8df5) will not change coverage.
The diff coverage is 57.14%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1131   +/-   ##
=======================================
  Coverage   89.05%   89.05%           
=======================================
  Files          93       93           
  Lines        4195     4195           
  Branches      959      959           
=======================================
  Hits         3736     3736           
  Misses        459      459           
Impacted Files Coverage Δ
packages/rum-core/src/boot/startRum.ts 39.28% <0.00%> (ø)
packages/rum-core/src/domain/requestCollection.ts 89.18% <0.00%> (ø)
packages/rum-core/src/domain/tracing/tracer.ts 100.00% <100.00%> (ø)

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 45f8df5...ca0d028. Read the comment docs.

@amortemousque amortemousque merged commit 332724b into main Oct 14, 2021
@amortemousque amortemousque deleted the aymeric/not-trace-request-when-session-is-not-tracked branch October 14, 2021 13:17
BenoitZugmeyer added a commit that referenced this pull request Oct 14, 2021
 pm_trace_id: 5744936
 feature_branch_pipeline_id: 5744936
 source: to-staging

* commit 'a157deb7e346457895eb52abfa4336a7610b1e2a':
  🐛  Do not trace requests when the session is not tracked (#1131)
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