Skip to content
Prev Previous commit
mypy
  • Loading branch information
alexmojaki committed Mar 17, 2025
commit 7eb2bcee15b8077c4ce002df59af4a44de2b62d8
2 changes: 2 additions & 0 deletions tests/testing_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def fetch_normalized_spans():
traces = []
for trace_obj in fetch_traces():
trace = trace_obj.export()
assert trace
assert trace.pop("object") == "trace"
assert trace.pop("id").startswith("trace_")
trace = {k: v for k, v in trace.items() if v is not None}
Expand All @@ -96,6 +97,7 @@ def fetch_normalized_spans():

for span_obj in fetch_ordered_spans():
span = span_obj.export()
assert span
assert span.pop("object") == "trace.span"
assert span.pop("id").startswith("span_")
assert datetime.fromisoformat(span.pop("started_at"))
Expand Down