Skip to content

fix: inject nodeID into telemetry events and add catalogue_viewed payload#281

Merged
TeoSlayer merged 1 commit into
mainfrom
fix/telemetry-client-nodeid-and-payload
Jun 17, 2026
Merged

fix: inject nodeID into telemetry events and add catalogue_viewed payload#281
TeoSlayer merged 1 commit into
mainfrom
fix/telemetry-client-nodeid-and-payload

Conversation

@TeoSlayer

Copy link
Copy Markdown
Collaborator

Summary

  • NodeID always 0 fixed: Client.Send() now injects c.nodeID into outgoing events where the caller left NodeID == 0. Previously the nodeID field stored at construction time was never written into the event struct before marshaling.
  • catalogue_viewed empty payload fixed: appstore_catalogue.go now sends {"surface":"catalogue"} in the event payload so the server has context for the event.

Test plan

  • go build ./... — no compilation errors (pre-commit hook passed)
  • go vet ./... — no issues (pre-commit hook passed)
  • CI passes on this PR

🤖 Generated with Claude Code

…load

- pkg/telemetry/client.go: Send() now injects c.nodeID into events
  that don't supply their own NodeID, so telemetry events carry the
  correct node identity instead of always being 0
- cmd/pilotctl/appstore_catalogue.go: catalogue_viewed event now sends
  payload {"surface":"catalogue"} instead of empty {}

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@TeoSlayer TeoSlayer requested a review from Alexgodoroja as a code owner June 17, 2026 12:43
@TeoSlayer TeoSlayer merged commit e510fe2 into main Jun 17, 2026
1 check was pending
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