Skip to content

Commit

Permalink
Simplify context extractor in instrumentation-aws-lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
jbfenton committed Jun 17, 2024
1 parent f81b856 commit 3ed3b1c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -919,9 +919,7 @@ def determine_context_extractor(
Returns: A context extractor function.
"""

if context_extractor_override and isinstance(
context_extractor_override, Callable
):
if callable(context_extractor_override):
return context_extractor_override

return lambda event: get_global_textmap().extract(event.headers)
Expand Down

0 comments on commit 3ed3b1c

Please sign in to comment.