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 d88c11b commit 2d0fcc9Copy full SHA for 2d0fcc9
opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py
@@ -277,8 +277,9 @@ def __eq__(self, other: object) -> bool:
277
)
278
279
def __hash__(self) -> int:
280
- attributes_json = dumps(self._attributes.copy(), sort_keys=True) # type: ignore
281
- return hash(f"{attributes_json}|{self._schema_url}")
+ return hash(
+ f"{dumps(self._attributes.copy(), sort_keys=True)}|{self._schema_url}"
282
+ ) # type: ignore
283
284
def to_json(self, indent: int = 4) -> str:
285
attributes = dict(self._attributes) # type: ignore
0 commit comments