Draft
Conversation
…out check - bigqueryExporter.ts: was sending OTel metrics to api.anthropic.com/api/claude_code/metrics - firstPartyEventLoggingExporter.ts: was batching events to api.anthropic.com/api/event_logging/batch - metricsOptOut.ts: was calling api.anthropic.com/api/claude_code/organizations/metrics_enabled All three are now no-op stubs consistent with the rest of the disabled telemetry code. Agent-Logs-Url: https://github.com/Cross2pro/free-coder/sessions/d1f18420-85e2-4482-9cf1-e2df88f2fe46 Co-authored-by: Cross2pro <30151531+Cross2pro@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove obsolete telemetry data from project
Stub out remaining active telemetry exporters
Apr 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three telemetry files still contained full network-calling implementations despite the rest of the telemetry layer being no-op'd. These were dead code (never imported in active paths), but retained live implementations that could accidentally re-send data if re-linked.
Changes
src/utils/telemetry/bigqueryExporter.ts— was POSTing OTel metrics tohttps://api.anthropic.com/api/claude_code/metrics. ReplacedBigQueryMetricsExporterwith a no-op stub implementingPushMetricExporter.src/services/analytics/firstPartyEventLoggingExporter.ts— was batching custom events tohttps://api.anthropic.com/api/event_logging/batchand persisting failed events to~/.config/claude/telemetry/for cross-restart retry. ReplacedFirstPartyEventLoggingExporterwith a no-op stub implementingLogRecordExporter.src/services/api/metricsOptOut.ts— was GETtinghttps://api.anthropic.com/api/claude_code/organizations/metrics_enabledto check org-level opt-out. Replaced with a stub that always returns{ enabled: false }.All three stubs preserve their exported class/function signatures for compile compatibility, generate zero network traffic, and are consistent with the existing pattern used throughout the rest of the telemetry layer (
instrumentation.ts,sessionTracing.ts,analytics/index.ts,datadog.ts, etc.).Original prompt