Skip to content

Commit 0adf5e2

Browse files
committed
fix:
1 parent 65759d0 commit 0adf5e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sentry/api/endpoints/organization_spans_fields.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636
from sentry.utils import snuba_rpc
3737

3838

39-
def as_tag_key(name: str, type: Literal["string", "number", "boolean"]):
40-
key, _, _ = translate_internal_to_public_alias(name, type, SupportedTraceItemType.SPANS)
39+
def as_tag_key(name: str, search_type: Literal["string", "number", "boolean"]):
40+
key, _, _ = translate_internal_to_public_alias(name, search_type, SupportedTraceItemType.SPANS)
4141

4242
if key is not None:
4343
name = key
44-
elif type == "number":
44+
elif search_type == "number":
4545
key = f"tags[{name},number]"
46-
elif type == "boolean":
46+
elif search_type == "boolean":
4747
key = f"tags[{name},boolean]"
4848
else:
4949
key = name

0 commit comments

Comments
 (0)