Send telemetry events for pnpm usage (#13748)

This PR adds telemetry events for pnpm usage, similar to what we did for
Yarn in #12785.

Seems like useful information to have.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-07-02 13:59:26 -04:00 committed by GitHub
parent 8ea2bd4c7e
commit eb845ee201
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -202,6 +202,10 @@ impl Telemetry {
event_coalescer: EventCoalescer::new(clock.clone()),
max_queue_size: MAX_QUEUE_LEN,
worktree_id_map: WorktreeIdMap(HashMap::from_iter([
(
"pnpm-lock.yaml".to_string(),
ProjectCache::new("pnpm".to_string()),
),
(
"yarn.lock".to_string(),
ProjectCache::new("yarn".to_string()),