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

feat: Add has-root-span operator to rules #814

Merged
merged 5 commits into from
Aug 1, 2023
Merged

feat: Add has-root-span operator to rules #814

merged 5 commits into from
Aug 1, 2023

Conversation

kentquirk
Copy link
Contributor

Dependent on #813; that should be merged before this one.

Which problem is this PR solving?

Short description of the changes

  • Adds a new rule operator, has-root-span, that evaluates to a boolean based on whether the root span for the trace has arrived when the rules are evaluated.
  • Add tests for it
  • Update metadata (but does not regenerate the docs yet; that will come before the release)

@kentquirk kentquirk requested a review from a team as a code owner August 1, 2023 02:04
sample/rules.go Show resolved Hide resolved
@fchikwekwe
Copy link
Contributor

Oh, I made a request prematurely, it looks like those cases are already covered by pre-existing tests. All looks good then.

Base automatically changed from kent.592 to main August 1, 2023 19:42
@kentquirk kentquirk merged commit 66dc60b into main Aug 1, 2023
@kentquirk kentquirk deleted the kent.610 branch August 1, 2023 20:50
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.

Feature: allow testing whether traces have a root span
3 participants