You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a python Lambda set up with the DD Lambda extension which extracts both OpenTelemetry trace context and W3C style baggage from the Lambda event with the following code. The Lambda spans are showing up in DataDog correctly and the trace context extraction seems to be working because they are showing up properly linked to other spans outside of the Lambda, but the baggage propagation isn't working - I wasn't sure if this is because that isn't supported or user error on my part.
This is how we handle baggage propagation in all of our non-Lambda code and it works there, having trouble figuring out why it isn't working in this context. Here's the code for how we're setting up OTel in the Lambda + relevant environment variables we have configured.
Sadly, it's just not a supported feature at this time. I think though it should be possible for you to do this extraction manually inside of your function though. Would you like help with that?
I have a python Lambda set up with the DD Lambda extension which extracts both OpenTelemetry trace context and W3C style baggage from the Lambda event with the following code. The Lambda spans are showing up in DataDog correctly and the trace context extraction seems to be working because they are showing up properly linked to other spans outside of the Lambda, but the baggage propagation isn't working - I wasn't sure if this is because that isn't supported or user error on my part.
The code looks like this:
Where event is the JSON passed into the Lambda and looks like this (trace context and baggage at the bottom)
This is how we handle baggage propagation in all of our non-Lambda code and it works there, having trouble figuring out why it isn't working in this context. Here's the code for how we're setting up OTel in the Lambda + relevant environment variables we have configured.
Env vars
Anything jumping out that I'm missing for baggage propagation to work? Is that just not a supported feature?
The text was updated successfully, but these errors were encountered: