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

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

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

Visibility: public

Requested revision: 8e3dc092a0bc672414eff85111bf18609bd216ff

Requested commit: 8e3dc092a0bc672414eff85111bf18609bd216ff

Commit: 8e3dc092a0bc672414eff85111bf18609bd216ff

Tree: 0e030a8053a80e4da4ed144bb3fc075c5a5dd613

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

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

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