Skip to content

[02069] Refactor telemetry methods to accept context objects#3394

Merged
nielsbosma merged 2 commits into
mainfrom
plan-02069-Ivy-Framework
Apr 6, 2026
Merged

[02069] Refactor telemetry methods to accept context objects#3394
nielsbosma merged 2 commits into
mainfrom
plan-02069-Ivy-Framework

Conversation

@nielsbosma

Copy link
Copy Markdown
Contributor

Summary

Changes

Removed the RepoUrl property from PrCreatedContext and stopped sending repo_url to PostHog in the pr_created telemetry event. Also removed the GitHub URL extraction logic from JobService that populated this field. The project and duration_seconds fields remain for non-identifying usage analytics.

API Changes

  • PrCreatedContext record: removed string RepoUrl parameter (was second positional parameter)
  • TelemetryService.TrackPrCreated(): no longer sends repo_url property to PostHog

Files Modified

  • Services/ITelemetryService.cs — Removed RepoUrl from PrCreatedContext record
  • Services/TelemetryService.cs — Removed repo_url from PostHog capture dictionary
  • Services/JobService.cs — Removed repoUrl extraction logic (regex match on plan.yaml) and simplified TrackPrCreated call
  • Apps/PullRequestApp.cs — Pre-existing formatting fix (dotnet format)

Commits

  • e4515f5 [02069] Remove repo_url from telemetry to protect user privacy
  • 4398f18 [02069] Fix formatting in PullRequestApp.cs

Remove RepoUrl from PrCreatedContext record and stop sending repo_url
to PostHog. The project field provides sufficient aggregation without
exposing potentially sensitive repository URLs.
@nielsbosma nielsbosma merged commit e33529d into main Apr 6, 2026
7 of 10 checks passed
@nielsbosma nielsbosma deleted the plan-02069-Ivy-Framework branch April 6, 2026 20:19
@artem-ivy-ai

Copy link
Copy Markdown
Collaborator

Staging removed

Staging environment has been deleted for this PR.

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