We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f04e912 commit 37eb302Copy full SHA for 37eb302
datadog_lambda/tracing.py
@@ -392,10 +392,11 @@ def extract_context_from_kinesis_event(event, lambda_context):
392
if config.data_streams_enabled:
393
from ddtrace.data_streams import PROPAGATION_KEY_BASE_64
394
395
- if PROPAGATION_KEY_BASE_64 in dd_ctx:
396
- data_streams_ctx = {
397
- PROPAGATION_KEY_BASE_64: dd_ctx[PROPAGATION_KEY_BASE_64]
398
- }
+ data_streams_ctx = {
+ PROPAGATION_KEY_BASE_64: dd_ctx[PROPAGATION_KEY_BASE_64]
+ if PROPAGATION_KEY_BASE_64 in dd_ctx
+ else {}
399
+ }
400
401
return propagator.extract(dd_ctx), data_streams_ctx.get
402
except Exception as e:
0 commit comments