We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e1a565 commit 32ce848Copy full SHA for 32ce848
opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py
@@ -234,7 +234,9 @@ def __eq__(self, other: object) -> bool:
234
)
235
236
def __hash__(self):
237
- return hash(dumps(self._attributes, sort_keys=True) + self._schema_url)
+ return hash(dumps(self._attributes, sort_keys=True)) + 31 * hash(
238
+ self._schema_url
239
+ )
240
241
242
_EMPTY_RESOURCE = Resource({}, "")
0 commit comments