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
Hey @kimmoahokas, thanks for reaching out. I'm curious though, from my understanding of ALB (you can see an example event here) our extractors should be able to handle them out of the box. We even have a test for this here. Basically, whenever there's a header key in the event payload, we'll look through it when extracting trace context.
Instead, I'm wondering if your issue is upstream. We should first check to make sure the caller is correctly injecting trace context. You can check this by inspecting the inbound lambda payload by adding DD_CAPTURE_LAMBDA_PAYLOAD=true and then looking at the aws.lambda span on any trace. Would you mind doing that and sharing an example inbound event payload with us? (of course redact anything sensitive)
Hello @purple4reina oh, thanks for the suggestion. I'm sure our upstream component adds trace headers (It's scala play play_ws client). But I will investigate this more after the holidays.
Mostly as a reminder for myself, this particular ALB+Lambda combination uses ALB Multi-Value headers which apparently changes the incomign event structure. So that might be the culprit here. Anyway, I'll get back to this on January since this is not a critical problem for us at the moment.
Ah yes, multi-value headers. I really suspect that is the culprit here. Thanks for that docs link. We've added support for multi-value headers for other languages, but not js yet. I'll create an internal feature request and add it to our future road map.
Expected Behavior
Lambda function called by AWS Application Load Balancer connects traces properly to upstream service
Actual Behavior
Traces are not connected
Steps to Reproduce the Problem
Specifications
The event format is documented at https://docs.aws.amazon.com/lambda/latest/dg/services-alb.html
The text was updated successfully, but these errors were encountered: