-
Notifications
You must be signed in to change notification settings - Fork 630
Description
I have been discussing this with @artembilan on stackoverflow, and he encouraged me to go ahead and open an issue here regarding the inability to propagate micrometer trace ids when using a StreamBridge
to produce a message. I've been trying to get trace id propagation working across the Kinesis messaging boundary between a producer and a consumer microservice. According to Artem, this is not possible as "SteamBridge
does not expose its internal DirectWithAttributesChannel
instances as beans. So, we cannot apply observation instrumentation from the framework perspective."
You can read more about the history of what we've discussed so far here, but as there is currently no way to get a trace id propagated from producer to consumer when using a StreamBridge
, I want to open this issue so that a common solution could be built into the framework so that this is possible. I see this as a critical missing capability, as there is no way to correspond logged trace ids across the Spring Cloud Stream messaging boundary in this particular scenario (i.e., when using a StreamBridge
to originate a message in a producer).