Tag OTEL spans with saga ID/type and aggregate stream ID/type#2489
Merged
jeremydmiller merged 1 commit intomainfrom Apr 9, 2026
Merged
Tag OTEL spans with saga ID/type and aggregate stream ID/type#2489jeremydmiller merged 1 commit intomainfrom
jeremydmiller merged 1 commit intomainfrom
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>
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 #2470
Summary
WolverineTracingtag name constants:wolverine.saga.id,wolverine.saga.type,wolverine.stream.id,wolverine.stream.typeEnvelope.WriteTags()now setswolverine.saga.idfromEnvelope.SagaId— covers existing-saga messages where the saga-id header is already populatedSetSagaIdFrameandSetSagaIdFromSagaFrameemit bothwolverine.saga.idandwolverine.saga.typevia code-gen — covers new and existing sagas where the ID is resolved from the command message propertyTagAggregateOtelFrameis injected intoAggregateHandling.Apply()to emitwolverine.stream.idandwolverine.stream.typefor every aggregate handler workflowTest plan
WolverineTracingTests— verifieswolverine.saga.idis tagged fromEnvelope.SagaId(and omitted when null)saga_action_discovery— verifies generated handler code containswolverine.saga.idandwolverine.saga.typeSetTagcalls for both existing-saga and start-with-id flowsaggregate_handler_workflow— verifies generated handler code containswolverine.stream.idandwolverine.stream.typeSetTagcalls🤖 Generated with Claude Code