Skip to content

Add SSS tests to cover a parent-child spans case#848

Merged
Qard merged 12 commits into
mainfrom
ygree/parent-child-SSS-tests
Feb 21, 2023
Merged

Add SSS tests to cover a parent-child spans case#848
Qard merged 12 commits into
mainfrom
ygree/parent-child-SSS-tests

Conversation

@ygree

@ygree ygree commented Feb 6, 2023

Copy link
Copy Markdown
Contributor

Description

A couple more tests to verify SSS when a parent/child span kept by SSS but the other is dropped by the tracer sampling rules.

The corresponding fix PR for Java Tracer
incident-18687

I also ran test_root_span_selected_by_sss014 for tracers other than Java. Go, .NET and Python all set _sampling_priority_v1 to -1 for the root span (should be 2 according to the RFC). Update: this sampling priority assertion wasn't relevant as the Agent handles this properly anyway
Also they don't set _dd.p.dm for the sampled span. Update: single spans should have this tag in this case, the specification was modified to clarify this
NodeJS: fails with InactiveRpcError

Check list

Your PR is not ready to be reviewed? Please save it as a draft 🙏

  • Follows the style guidelines of this project (See how to easily lint the code)
  • CI is passing
  • There is at least one approval from code owners

Yes to all? Feel free to merge it whenever you want ❤️

@katiehockman katiehockman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! Just some small nits

Comment thread parametric/test_span_sampling.py Outdated
Comment thread parametric/test_span_sampling.py Outdated
Comment thread parametric/test_span_sampling.py Outdated
Comment thread parametric/test_span_sampling.py Outdated
Comment thread parametric/test_span_sampling.py Outdated
Comment thread parametric/test_span_sampling.py Outdated
@Qard

Qard commented Feb 9, 2023

Copy link
Copy Markdown

Looks like the linter has some issues, but other than that LGTM.

Comment thread parametric/test_span_sampling.py
@ygree
ygree force-pushed the ygree/parent-child-SSS-tests branch from 5977520 to 476caf6 Compare February 9, 2023 16:08
@ygree
ygree requested a review from a team as a code owner February 9, 2023 20:10
@ygree ygree mentioned this pull request Feb 9, 2023
3 tasks

@Kyle-Verhoog Kyle-Verhoog left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm from a parametric/code quality standpoint

@dgoffredo

Copy link
Copy Markdown
Contributor

I'll propose additions to this test in a separate PR.

This LGTM.

@Qard

Qard commented Feb 15, 2023

Copy link
Copy Markdown

Seems to be a bunch of dotnet and java failures, but doesn't look to be related. Can we land this?

@cbeauchesne

Copy link
Copy Markdown
Collaborator

Seems to be a bunch of dotnet and java failures, but doesn't look to be related. Can we land this?

Yes, you can ignore them

@Qard
Qard merged commit f2ccb53 into main Feb 21, 2023
@Qard
Qard deleted the ygree/parent-child-SSS-tests branch February 21, 2023 16:41
Hellzy pushed a commit that referenced this pull request Feb 22, 2023
* Add SSS tests to cover a parent-child spans case

* Update parametric/test_span_sampling.py

Co-authored-by: Katie Hockman <[email protected]>

* Update parametric/test_span_sampling.py

Co-authored-by: Katie Hockman <[email protected]>

* fix parametric tests

* remove comment

* Assert the parent span trace priority only.

* Fix misleading comment

* Bump Java Tracer to 1.8.0 to pass the tests

---------

Co-authored-by: Katie Hockman <[email protected]>
Co-authored-by: Katie Hockman <[email protected]>
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.

10 participants