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

Function clickhouse_delete_span

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

Delete a span from ClickHouse by SpanId

(span_id: Any)

Source from the content-addressed store, hash-verified

435
436
437async def clickhouse_delete_span(span_id: Any) -> None:
438 """Delete a span from ClickHouse by SpanId"""
439 client = await get_async_clickhouse()
440 query = """
441 ALTER TABLE {table_name}
442 DELETE WHERE SpanId = '{span_id}'
443 """
444 query = query.format(table_name=IMPORT_TABLE_NAME, span_id=str(span_id))
445 if not DRY_RUN:
446 await client.query(query)
447 else:
448 print(query)
449
450
451async def clickhouse_update_span(span_id: str, update_data: dict) -> None:

Callers 1

clickhouse_update_spanFunction · 0.85

Calls 2

get_async_clickhouseFunction · 0.90
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…