Skip to content

[02057] Enhance telemetry methods with context parameters#3387

Merged
nielsbosma merged 1 commit into
mainfrom
plan-02057-Ivy-Framework
Apr 6, 2026
Merged

[02057] Enhance telemetry methods with context parameters#3387
nielsbosma merged 1 commit into
mainfrom
plan-02057-Ivy-Framework

Conversation

@nielsbosma

Copy link
Copy Markdown
Contributor

Summary

Changes

Enhanced the three parameterless telemetry methods (TrackAppStarted, TrackPlanCreated, TrackPrCreated) to accept typed context record parameters, matching the pattern already established by TrackJobCompleted. Each method now sends rich properties to PostHog instead of bare events.

API Changes

  • ITelemetryService.TrackAppStarted()TrackAppStarted(AppStartContext context)
  • ITelemetryService.TrackPlanCreated()TrackPlanCreated(PlanCreatedContext context)
  • ITelemetryService.TrackPrCreated()TrackPrCreated(PrCreatedContext context)
  • New record AppStartContext(string Version, int ProjectCount, bool LlmConfigured)
  • New record PlanCreatedContext(string Project, string Level, int? DurationSeconds)
  • New record PrCreatedContext(string Project, string RepoUrl, int? DurationSeconds)

Files Modified

  • src/tendril/Ivy.Tendril/Services/ITelemetryService.cs — Updated interface signatures, added context record types
  • src/tendril/Ivy.Tendril/Services/TelemetryService.cs — Updated implementation to send properties via PostHog
  • src/tendril/Ivy.Tendril/Services/JobService.cs — Updated call sites to construct context objects, reads plan.yaml for level and PR URL
  • src/tendril/Ivy.Tendril/Program.cs — Updated TrackAppStarted call to pass version, project count, LLM status

Commits

  • a536f21 [02057] Enhance telemetry methods with context parameters

@nielsbosma nielsbosma merged commit c163d89 into main Apr 6, 2026
7 of 10 checks passed
@nielsbosma nielsbosma deleted the plan-02057-Ivy-Framework branch April 6, 2026 20:00
@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