Skip to content

Commit e5c7272

Browse files
committed
fix: Metadata to_h should convert all sub meta to hash
1 parent e0802c6 commit e5c7272

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/aws-xray-sdk/model/metadata.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ def sub_meta(namespace)
1717
end
1818

1919
def to_h
20-
@data
20+
@data.keys.each_with_object({}) do |key, h|
21+
h[key] = @data[key].to_h
22+
h
23+
end
24+
2125
end
2226
end
2327

0 commit comments

Comments
 (0)