Skip to content

Conversation

@koxudaxi
Copy link
Collaborator

@koxudaxi koxudaxi commented Jan 6, 2026

TL;DR

Added a new end-to-end verification script for ClickHouse sync via the Search API.

What changed?

Added a new Python script local_clickhouse_verify.py that:

  1. Sends spans via OTLP exporter
  2. Polls the Search API until the spans appear in ClickHouse
  3. Verifies data integrity by checking various Search API endpoints
  4. Reports success or failure of the E2E verification

The script creates test traces with nested spans, waits for them to be synced to ClickHouse, and then verifies the data is correctly accessible through the Search API.

How to test?

  1. Start Docker: cd cloud && docker compose -f docker/compose.yml up -d
  2. Start cloud server: bun run cloud:dev
  3. Start sync worker: cd cloud && bun run tsx workers/clickhouseSyncLocal.ts
  4. Run the script: MIRASCOPE_API_KEY=mk_xxx uv run python examples/misc/local_clickhouse_verify.py

The script will output detailed progress and verification results.

Why make this change?

This script provides a reliable way to verify the complete data flow from OTLP export to ClickHouse storage and Search API retrieval. It helps ensure that the entire pipeline is functioning correctly during local development and testing.

@koxudaxi koxudaxi marked this pull request as ready for review January 6, 2026 13:39
@koxudaxi koxudaxi requested a review from willbakst as a code owner January 6, 2026 13:39
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 6, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
v2-docs c025880 Jan 09 2026, 04:25 AM

@koxudaxi koxudaxi force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch from b30793e to 673a7ea Compare January 6, 2026 13:46
@koxudaxi koxudaxi force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch from 673a7ea to 958a090 Compare January 6, 2026 14:21
@koxudaxi koxudaxi force-pushed the 01-06-test_clickhouse_add_local_clickhouse_verification_script branch from 8beeb60 to 19d712e Compare January 6, 2026 14:21
@koxudaxi koxudaxi force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch 2 times, most recently from 6a285a5 to 4e877de Compare January 6, 2026 14:35
@koxudaxi koxudaxi force-pushed the 01-06-test_clickhouse_add_local_clickhouse_verification_script branch from 19d712e to 30675b3 Compare January 6, 2026 14:35
@koxudaxi koxudaxi force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch from 4e877de to 30dfd65 Compare January 6, 2026 14:43
@koxudaxi koxudaxi force-pushed the 01-06-test_clickhouse_add_local_clickhouse_verification_script branch 2 times, most recently from 371b355 to bd3bb06 Compare January 6, 2026 14:49
@koxudaxi koxudaxi force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch 2 times, most recently from c84a179 to ab871c4 Compare January 6, 2026 14:55
@koxudaxi koxudaxi force-pushed the 01-06-test_clickhouse_add_local_clickhouse_verification_script branch from bd3bb06 to ccc73d0 Compare January 6, 2026 14:55
@koxudaxi koxudaxi force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch from ab871c4 to 6b60142 Compare January 6, 2026 15:05
@koxudaxi koxudaxi force-pushed the 01-06-feat_api_add_search_api_schema_definitions branch from 253170e to b27d7d1 Compare January 8, 2026 17:19
@koxudaxi koxudaxi force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch 2 times, most recently from f7b4222 to baa9132 Compare January 8, 2026 17:38
@koxudaxi koxudaxi force-pushed the 01-06-feat_api_add_search_api_schema_definitions branch 2 times, most recently from 3caee01 to dc94382 Compare January 8, 2026 17:42
@koxudaxi koxudaxi force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch from baa9132 to 39a6f7e Compare January 8, 2026 17:42
@koxudaxi koxudaxi force-pushed the 01-06-feat_api_add_search_api_schema_definitions branch from dc94382 to 4fad399 Compare January 8, 2026 17:52
@koxudaxi koxudaxi force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch from 39a6f7e to 9902c4b Compare January 8, 2026 17:52
@koxudaxi koxudaxi force-pushed the 01-06-feat_api_add_search_api_schema_definitions branch from 4fad399 to b9d2dc2 Compare January 8, 2026 18:03
@koxudaxi koxudaxi force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch 2 times, most recently from 9db0b41 to b8d7da5 Compare January 8, 2026 18:09
@koxudaxi koxudaxi force-pushed the 01-06-feat_api_add_search_api_schema_definitions branch from b9d2dc2 to 910c854 Compare January 8, 2026 18:09
Copy link
Collaborator

willbakst commented Jan 9, 2026

Merge activity

@koxudaxi koxudaxi force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch from b8d7da5 to 7dbd9e8 Compare January 9, 2026 01:41
@koxudaxi koxudaxi force-pushed the 01-06-feat_api_add_search_api_schema_definitions branch from 910c854 to f552991 Compare January 9, 2026 01:41
@koxudaxi koxudaxi force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch from 7dbd9e8 to 9e0f233 Compare January 9, 2026 03:11
@koxudaxi koxudaxi force-pushed the 01-06-feat_api_add_search_api_schema_definitions branch from f552991 to 6b17374 Compare January 9, 2026 03:11
@willbakst willbakst force-pushed the 01-06-feat_api_add_search_api_schema_definitions branch from 6b17374 to 4b9be6c Compare January 9, 2026 04:05
@willbakst willbakst force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch from 9e0f233 to e9f846a Compare January 9, 2026 04:06
@graphite-app graphite-app bot changed the base branch from 01-06-feat_api_add_search_api_schema_definitions to graphite-base/1818 January 9, 2026 04:10
@willbakst willbakst force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch from e9f846a to 59da2d1 Compare January 9, 2026 04:16
@graphite-app graphite-app bot changed the base branch from graphite-base/1818 to 01-06-feat_api_add_search_api_schema_definitions January 9, 2026 04:16
@willbakst willbakst force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch from 59da2d1 to a06c791 Compare January 9, 2026 04:16
@willbakst willbakst changed the base branch from 01-06-feat_api_add_search_api_schema_definitions to graphite-base/1818 January 9, 2026 04:18
@willbakst willbakst changed the base branch from graphite-base/1818 to v2 January 9, 2026 04:19
@willbakst willbakst force-pushed the 01-06-test_python_add_e2e_clickhouse_verification_script branch from a06c791 to c025880 Compare January 9, 2026 04:19
@willbakst willbakst merged commit ddacc55 into v2 Jan 9, 2026
13 of 14 checks passed
@willbakst willbakst deleted the 01-06-test_python_add_e2e_clickhouse_verification_script branch January 9, 2026 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants