Repository navigation
feat: correlation id and trace context on consumer failure warning - #2142
Merged
Merged
Conversation
johanandren
force-pushed
the
consumer-failure-correlation
branch
from
November 13, 2026 12:51
9b642fc to
c77848f
Compare
johanandren
marked this pull request as ready for review
November 13, 2026 12:51
johanandren
force-pushed
the
consumer-failure-correlation
branch
2 times, most recently
from
November 13, 2026 14:43
a823798 to
535e8c1
Compare
johanandren
force-pushed
the
consumer-failure-correlation
branch
2 times, most recently
from
November 13, 2026 15:28
32d7792 to
2aa539f
Compare
johanandren
force-pushed
the
consumer-failure-correlation
branch
from
November 13, 2026 15:48
2aa539f to
8a75f8d
Compare
octonato
approved these changes
Nov 16, 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.
🤖 Refs lightbend/akka-runtime#5996. Based on #2138, merge that first. Needs the runtime change in lightbend/akka-runtime#5997.
When a consumer fails, the runtime reports AK-00433 ("Eventing in consumer [X] is failing, will be retried"), which the SDK logs. That log had no
correlationIDand no trace context, so it could not be linked to the SDK error log for the same failure.Changes
ConsumerImplpasses the correlation ID that it logged the error with to the runtime, inSpiConsumer.Error.SdkRunner.logReportedErrorlogs errors reported by the runtime with the correlation ID in the MDC and the telemetry context current. The JSON log then hascorrelationIDand the trace context fields, the same as the consumer's own error log.Before merge
Bump
AkkaRuntimeVersionto a runtime version that includes the runtime change.