Delete a span from ClickHouse by SpanId
(span_id: Any)
| 435 | |
| 436 | |
| 437 | async 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 | |
| 451 | async def clickhouse_update_span(span_id: str, update_data: dict) -> None: |
no test coverage detected
searching dependent graphs…