Skip to content

Commit

Permalink
Merge pull request #2285 from Agenta-AI/fix/AGE-1360
Browse files Browse the repository at this point in the history
[Fix] AGE-1360
  • Loading branch information
mmabrouk authored Nov 21, 2024
2 parents 26882d0 + 06b0e14 commit 6f10285
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions agenta-backend/agenta_backend/core/observability/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _is_uuid_key(key: str) -> bool:
"root.id",
"tree.id",
"node.id",
"parend.id",
"parent.id",
)


Expand Down Expand Up @@ -152,6 +152,7 @@ def parse_ingest_value(
attributes[key] = to_type(attributes[key])
except ValueError:
print_exc()
print(f"key='{key}' attribute='{attributes[key]}' type='{to_type}'")

del attributes[key]

Expand All @@ -167,7 +168,7 @@ def parse_ingest(
}
for field, attributes in typecheck.items():
if attributes is not None:
for key in attributes.keys():
for key in list(attributes.keys()):
scoped_key = f"{field}.{key}"
if _is_uuid_key(scoped_key):
parse_ingest_value(attributes, UUID, key)
Expand Down

0 comments on commit 6f10285

Please sign in to comment.