# feat\(analytics\): credit v2 threads and turns to the starting client \(\#7774\) · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/1840442f85771739c5af4ef0397da9286ed1c446)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 1840442f85771739c5af4ef0397da9286ed1c446

Requested commit: 1840442f85771739c5af4ef0397da9286ed1c446

Commit: 1840442f85771739c5af4ef0397da9286ed1c446

Tree: 41c302702b80fd4ac7284130cc45c49fc7b7103b

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
feat(analytics): credit v2 threads and turns to the starting client (#7774)

Main records which client surface started each thread and turn; the v2
dispatch path replaced the v1 handler that did the recording, so v2
environments only reported connections. The v2 RPC layer now records
client.thread.started on thread launches (plus client.turn.requested when
the launch carries an initial message) and client.turn.requested on
message dispatches, using the connection's announced origin. Recording is
best-effort — attribution can never fail the user's command.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

- [fc8a3e32d2c8b4add80c947182411a3a6dc83b37](https://git.cafe/pingdotgg/t3code/commit/fc8a3e32d2c8b4add80c947182411a3a6dc83b37?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/1840442f85771739c5af4ef0397da9286ed1c446?format=markdown)
