Skip to content

Conversation

@andrewslotin
Copy link

The HTTP headers are passed in the headers section of event payload when a Lambda function is invoked via ELB and API Gateway, while Python sensor's Lambda instrumentation passes the whole event to the tracer.extract(). As a result the tract context is not being picked up, forcing each Lambda invocation to start a new trace.

In this PR get_context() attempts to detect the event type and pass the appropriate object to the propagator.

@andrewslotin andrewslotin requested a review from pglombardo July 16, 2020 14:14
@andrewslotin andrewslotin force-pushed the fix_lambda_trace_context_extraction branch from 3d17946 to 77b1f0c Compare July 16, 2020 14:16
@andrewslotin andrewslotin merged commit eac3c15 into master Jul 16, 2020
@andrewslotin andrewslotin deleted the fix_lambda_trace_context_extraction branch July 16, 2020 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants