Skip to content

tracing: fix "name / parent" variant of event! #3293

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

Open
wants to merge 1 commit into
base: v0.1.x
Choose a base branch
from
Open

Conversation

hds
Copy link
Contributor

@hds hds commented May 30, 2025

Motivation

In the case of an event with a name and a parent, the change in #2083
to use a free function instead of a method for is_enabled was not
applied. This particular variant was also not covered by any tests,
which is how this error slipped through CI.

Solution

This change fixes the is_enabled call and adds additional test
coverage for this macros case.

This change was originally submitted by @Mododo in #2983, but we have an
issue where first-time contributor PRs to the v0.1.x branch don't
trigger CI and we can't trigger it manually, so it needed to be
recreated.

In the case of an event with a name and a parent, the change in #2083
to use a free function instead of a method for `is_enabled` was not
applied. This particular variant was also not covered by any tests,
which is how this error slipped through CI.

This change fixes the `is_enabled` call and adds additional test
coverage for this macros case.

This change was originally submitted by @Mododo in #2983, but we have an
issue where first-time contributor PRs to the `v0.1.x` branch don't
trigger CI and we can't trigger it manually, so it needed to be
recreated.
@hds hds requested review from hawkw and a team as code owners May 30, 2025 13:40
@hds
Copy link
Contributor Author

hds commented May 30, 2025

CI should go green once #3283 is merged.

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