Skip to content

Commit

Permalink
fix: return early if carrier is nil (open-telemetry#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlaurin committed Jun 23, 2021
1 parent 83fb2be commit 76ef411
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def inject(carrier, context: Context.current, setter: Context::Propagation.text_
# if extraction fails
def extract(carrier, context: Context.current, getter: Context::Propagation.text_map_getter)
header = getter.get(carrier, BAGGAGE_KEY)
return context unless header

entries = header.gsub(/\s/, '').split(',')

Expand Down

0 comments on commit 76ef411

Please sign in to comment.