Skip to content

Commit 4b1a16a

Browse files
asasvarixrmx
andauthored
Update opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py
Co-authored-by: Riccardo Magliocchetti <[email protected]>
1 parent 26ad2c9 commit 4b1a16a

File tree

1 file changed

+1
-1
lines changed
  • opentelemetry-sdk/src/opentelemetry/sdk/resources

1 file changed

+1
-1
lines changed

opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def merge(self, other: "Resource") -> "Resource":
250250
Returns:
251251
The newly-created Resource.
252252
"""
253-
merged_attributes = dict(self.attributes)
253+
merged_attributes = self.attributes.copy()
254254
merged_attributes.update(other.attributes)
255255

256256
if self.schema_url == "":

0 commit comments

Comments
 (0)