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 f1e8d36 commit 26f36cdCopy full SHA for 26f36cd
lib/ddtrace/propagation/grpc_propagator.rb
@@ -60,9 +60,9 @@ def origin
60
private
61
62
def metadata_for_key(key)
63
- # metadata values can be arrays (multiple headers with the same values)
64
- return @metadata[key].first if @metadata[key].is_a?(Array)
65
- @metadata[key]
+ # metadata values can be arrays (multiple headers with the same key)
+ value = @metadata[key]
+ value.is_a?(Array) ? value.first : value
66
end
67
68
0 commit comments