Add IHandlerConfiguration interface for compile-time safe Configure(HandlerChain) (#2466)#2491
Merged
jeremydmiller merged 2 commits intomainfrom Apr 9, 2026
Merged
Conversation
Adds wolverine.saga.id, wolverine.saga.type, wolverine.stream.id, and wolverine.stream.type Activity tags so operators can query all telemetry for a specific saga instance or aggregate stream. - Envelope.WriteTags() now sets wolverine.saga.id from Envelope.SagaId (covers existing-saga messages where the header is already populated) - SetSagaIdFrame and SetSagaIdFromSagaFrame emit wolverine.saga.id and wolverine.saga.type via code-gen, covering both new and existing sagas where the ID is resolved from the command message - TagAggregateOtelFrame is injected into AggregateHandling.Apply() to emit wolverine.stream.id and wolverine.stream.type for every aggregate handler workflow Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…andlerChain) convention (#2466) Introduces `IHandlerConfiguration` with `static abstract void Configure(HandlerChain chain)`, giving handler types a compile-time-validated alternative to the naming convention. Misspellings or wrong signatures now produce compiler errors instead of being silently ignored. The convention-based approach continues to work unchanged for backward compatibility. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced Apr 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2466
Summary
IHandlerConfigurationinWolverine.Configurationwithstatic abstract void Configure(HandlerChain chain)— a C# 12 static abstract interface memberConfigureor use the wrong parameter type, instead of being silently ignoredChain.applyAttributesAndConfigureMethodsto invoke interface implementors first (viaGetInterfaceMap), then fall back to convention-based detection for all other types — no double-invocationTest plan
the_configure_method_via_interface_is_found_and_used— verifies the interface path invokesConfigureconvention_based_configure_still_works— verifies the naming convention still works alongside the interfacecan_customize_handler_chain_through_Configure_call_on_HandlerTypetests still passdotnet buildsucceeds with no errors🤖 Generated with Claude Code