Skip to content

Conversation

@maartenflippo
Copy link
Contributor

If a PropagatorConstructor implementation does not register the propagator to be enqueued for any events, the propagator will never be enqueued except for when it is added to the State. In most cases, this is a programming error where someone forgets to call register.

To make it more difficult for this error to occur, the propagator constructor context will now crash if it is dropped without any registration having taken place. In the odd case where no registration is done intentionally, PropagatorConstructorContext::will_not_register_for_any_events can be called to avoid the crash.

@ImkoMarijnissen ImkoMarijnissen merged commit 29a6068 into main Dec 16, 2025
8 checks passed
@ImkoMarijnissen ImkoMarijnissen deleted the feat/constructor-fails-on-no-registration branch December 16, 2025 12:53
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.

3 participants