Skip to content

Commit 2d0fcc9

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

File tree

1 file changed

+3
-2
lines changed
  • opentelemetry-sdk/src/opentelemetry/sdk/resources

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,9 @@ def __eq__(self, other: object) -> bool:
277277
)
278278

279279
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}")
280+
return hash(
281+
f"{dumps(self._attributes.copy(), sort_keys=True)}|{self._schema_url}"
282+
) # type: ignore
282283

283284
def to_json(self, indent: int = 4) -> str:
284285
attributes = dict(self._attributes) # type: ignore

0 commit comments

Comments
 (0)