Skip to content

feat: point telemetry endpoint to production URL and finalize table schema#391

Merged
lwshang merged 6 commits intomainfrom
lwshang/finalize_telemetry
Mar 2, 2026
Merged

feat: point telemetry endpoint to production URL and finalize table schema#391
lwshang merged 6 commits intomainfrom
lwshang/finalize_telemetry

Conversation

@lwshang
Copy link
Contributor

@lwshang lwshang commented Feb 26, 2026

Summary

  • Point TELEMETRY_ENDPOINT to the production Vector service (https://icp-cli.dfinity.network/telemetry), replacing the .invalid placeholder
  • Document batch and sequence fields in telemetry.md

Test plan

  • Verified e2e: ran icp settings telemetry with the real endpoint, confirmed the record appeared in ClickHouse
  • Tests override the endpoint to .invalid so they never hit production

lwshang and others added 2 commits February 26, 2026 10:11
Replace the persistent machine_id (which enabled cross-session tracking)
with the already-existing batch UUID that only groups records within a
single transmission. This is a better privacy/utility balance. Also add
batch and sequence to the "What is collected" table so it serves as a
complete schema reference.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Re-add the persistent machine_id field that was removed in the previous
commit. A per-installation UUID is standard practice for CLI telemetry
(Next.js, .NET CLI, AWS CDK all do this) and enables cross-batch
analysis like version upgrade tracking and unique installation counts.

The batch/sequence documentation additions from the previous commit are
preserved.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lwshang lwshang changed the title chore: remove machine_id from telemetry, document batch/sequence fields feat: [PENDING] real URL for telemetry ingestion and finalize table schema Feb 26, 2026
lwshang and others added 3 commits March 2, 2026 09:10
The Vector ingestion service is now live. Replace the `.invalid`
placeholder with the real endpoint and add a comment explaining
why tests override it back to a non-resolvable address.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lwshang lwshang changed the title feat: [PENDING] real URL for telemetry ingestion and finalize table schema feat: point telemetry endpoint to production URL and finalize table schema Mar 2, 2026
The `telemetry_failed_send_is_silent` test relied on the default endpoint
being unreachable, but now that the production URL is live it returns HTTP
200, causing the batch file to be deleted and the test to fail.

Fix by using the `icp_with_telemetry!(ctx, enable_send)` macro variant,
which redirects to `https://telemetry.invalid/` so the send always fails
silently in tests.

Also rename the macro flag `allow_upload` → `enable_send` to better
describe what it does: it allows `should_send()` to return true so the
send trigger fires, but the `.invalid` endpoint ensures no data reaches
production.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lwshang lwshang marked this pull request as ready for review March 2, 2026 21:21
@lwshang lwshang requested a review from a team as a code owner March 2, 2026 21:21
@lwshang lwshang merged commit ccfd8e5 into main Mar 2, 2026
88 checks passed
@lwshang lwshang deleted the lwshang/finalize_telemetry branch March 2, 2026 21:27
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.

2 participants