MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / write_dropped_record

Function write_dropped_record

app/api/agentops/exporter/processor.py:72–76  ·  view source on GitHub ↗

Make a note of a record that was dropped during processing.

(table: str, id: Any, exception: Exception)

Source from the content-addressed store, hash-verified

70
71
72def write_dropped_record(table: str, id: Any, exception: Exception) -> None:
73 """Make a note of a record that was dropped during processing."""
74 with open(DROPPED_RECORDS_FILENAME, 'a') as f:
75 msg = str(exception).replace('"', "'").replace("\n", " ~ ")
76 f.write(f"{table},{str(id)},\"{msg}\"\n")
77
78
79def write_last_session_id(session_id: Any) -> None:

Callers 3

get_model_instanceMethod · 0.85
get_session_as_traceFunction · 0.85
write_trace_with_timeoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…