We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 493706e commit 8f04a74Copy full SHA for 8f04a74
sentry_sdk/tracing_utils.py
@@ -1509,15 +1509,12 @@ def _matches(rule: "Any", value: "Any") -> bool:
1509
name_matches = _matches(rule["name"], name)
1510
1511
if "attributes" in rule:
1512
- if not attributes:
1513
- attributes_match = False
1514
- else:
1515
- for attribute, value in rule["attributes"].items():
1516
- if attribute not in attributes or not _matches(
1517
- value, attributes[attribute]
1518
- ):
1519
1520
- break
+ for attribute, value in rule["attributes"].items():
+ if attribute not in attributes or not _matches(
+ value, attributes[attribute]
+ ):
+ attributes_match = False
+ break
1521
1522
if name_matches and attributes_match:
1523
return True
0 commit comments