Skip to content

Commit 727f7d3

Browse files
committed
The Resource created here should be overwritten with new data
the current implementation behaves by preserving the default values
1 parent 35ac7ac commit 727f7d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Instrumentation/SDKResourceExtension/DefaultResources.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class DefaultResources {
3131
let mirror = Mirror(reflecting: self)
3232
for children in mirror.children {
3333
if let provider = children.value as? ResourceProvider {
34-
resource.merge(other: provider.create())
34+
resource = provider.create().merging(other: resource)
3535
}
3636
}
3737
return resource

0 commit comments

Comments
 (0)