Skip to content

feat(telemetry): add provider_type to computer initialization events#921

Open
sarinali wants to merge 4 commits intotrycua:mainfrom
sarinali:feat/provider-type-fix
Open

feat(telemetry): add provider_type to computer initialization events#921
sarinali wants to merge 4 commits intotrycua:mainfrom
sarinali:feat/provider-type-fix

Conversation

@sarinali
Copy link
Contributor

Summary

  • Add provider_type to computer_initialized event in Python SDK
  • Add vmProvider field to BaseComputerConfig interface in TypeScript SDK
  • Add provider_type to computer_initialized and ts_computer_init events in TypeScript SDK

This enables tracking of computer provider usage breakdown (cloud, docker, lume, winsandbox, etc.) in PostHog dashboards.

Test plan

  • Verify Python SDK sends provider_type in telemetry events
  • Verify TypeScript SDK sends provider_type in telemetry events
  • Check PostHog to confirm events contain the new property

🤖 Generated with Claude Code

Add provider_type property to telemetry events to enable tracking of
computer provider usage breakdown (cloud, docker, lume, winsandbox, etc.).

Python SDK:
- Add provider_type to computer_initialized event

TypeScript SDK:
- Add vmProvider field to BaseComputerConfig interface
- Add provider_type to computer_initialized and ts_computer_init events

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link
Contributor

vercel bot commented Jan 27, 2026

@sarinali is attempting to deploy a commit to the Cua Team on Vercel.

A member of the Team first needs to authorize it.

@sentry
Copy link

sentry bot commented Jan 27, 2026

Codecov Report

❌ Patch coverage is 96.66667% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
libs/python/agent/tests/test_telemetry_events.py 98.24% 1 Missing ⚠️
libs/python/computer/computer/computer.py 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

sarinali and others added 3 commits January 28, 2026 00:19
Fix formatting issues flagged by CI:
- prettier: 7 files (json, tsx, md, yml, ts)
- isort: 4 Python files with incorrect import sorting
- black: 1 Python file reformatted

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
asyncio.coroutine was removed in Python 3.11. Use AsyncMock from
unittest.mock instead.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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