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

fix: use trace.DescendantCount for span limit #1297

Merged
merged 3 commits into from
Aug 22, 2024
Merged

Conversation

VinozzZ
Copy link
Contributor

@VinozzZ VinozzZ commented Aug 22, 2024

Which problem is this PR solving?

Refinery converts SpanEvent and SpanLink to individual events just like regular spans. We should use DescendantCount to check against the SpanLimit instead of only spans.

Short description of the changes

  • use DescendantCount to check against SpanLimit
  • modify test to explicitly check for span limit trace send reason

@VinozzZ VinozzZ requested a review from a team as a code owner August 22, 2024 18:36
Copy link
Contributor

@kentquirk kentquirk left a comment

Choose a reason for hiding this comment

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

Good catch. I thought of this at one point and then forgot to check it.

@VinozzZ VinozzZ merged commit 7c56f56 into main Aug 22, 2024
5 checks passed
@VinozzZ VinozzZ deleted the yingrong.span_limit branch August 22, 2024 22:17
@VinozzZ VinozzZ added this to the v2.8 milestone Aug 27, 2024
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.

2 participants