Open pavolloffay opened 4 years ago
I think it is much better to integrate with context propagation as it was created to server the purpose of this spec and Fault Tolerance.
Where do we stand here? I think it is important to solve that rather sooner than later as any (reactive) messaging things are becoming more popular these days.
SmallRye includes in its last version metadata propagation (metadata associated with messages) and supports context propagation (capture of the context and propagation to the subscriber).
I am creating this based on https://github.com/smallrye/smallrye-reactive-messaging/issues/214
Allow in-process context propagation between handlers. The API can be used by users to propagate any objects between handlers, but It is also necessary for tracing to propagate span context object to be able to link spans in handlers:
links span from
data-processor-in
todata-processor-out
topics.Two solutions have been already discussed:
Map<String, Object>
)to the message class. Q: How would user get the context? The implementation would have to provide an SPI to initialize TLS.Once the context propagation is in place we could provide tracing for underlying messaging platforms but in addition to also model invocations of the handlers themselves.
Other
Related to #2?