Propagtion of Contextual data across services

29 views
Skip to first unread message

mohammad yeganehfar

unread,
Apr 4, 2024, 3:17:14 PMApr 4
to Service Weaver
My question is about how to propagate contexual data such as UserID from one service to another.
It seems like I should use propagator feature of OpenTelemetery.
I'm not someone knowledgeable about OpenTelemery. However it seems it need something like HTTP headers for propagting contextual data.
I also took a look at the ServerWeaver source code, it seems it's header has a fixed length and sends just tracing context.
I would greatly appreciate it if you could guide me in this matter.

rgrandl

unread,
Apr 10, 2024, 4:27:52 PMApr 10
to Service Weaver
That's correct. We recommend adding a new argument to your method, if you want to pass things around. 
Reply all
Reply to author
Forward
0 new messages