Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(telemetry): add JS package #7820

Merged
merged 4 commits into from
Mar 26, 2024

Conversation

tknickman
Copy link
Member

Description

Adds a turbo-telemetry library that enables tracking telemetry events from javascript packages.

Important
This shares all telemetry state with turbo core's telemetry. This means users only need to disable once across all packages.

Copy link

vercel bot commented Mar 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-gatsby-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Mar 26, 2024 7:25pm
examples-native-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Mar 26, 2024 7:25pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2024 7:25pm
7 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Mar 26, 2024 7:25pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Mar 26, 2024 7:25pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Mar 26, 2024 7:25pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Mar 26, 2024 7:25pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Mar 26, 2024 7:25pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Mar 26, 2024 7:25pm
rust-docs ⬜️ Ignored (Inspect) Visit Preview Mar 26, 2024 7:25pm

Copy link
Contributor

github-actions bot commented Mar 22, 2024

✅ This change can build next-swc

Copy link

socket-security bot commented Mar 22, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/node@20.11.30 None +1 2.09 MB types
npm/dirs-next@0.0.1-canary.1 environment, filesystem 0 12.4 kB tknickman

View full report↗︎

Copy link
Contributor

github-actions bot commented Mar 22, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Mar 22, 2024

🟢 CI successful 🟢

Thanks

packages/turbo-telemetry/README.md Show resolved Hide resolved
packages/turbo-telemetry/src/cli.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@chris-olszewski chris-olszewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I do have some slight concern about keeping the event keys in sync. There's probably something we could do with napi, but no need to build infra before we need it.

packages/turbo-telemetry/src/utils.ts Outdated Show resolved Hide resolved
@tknickman
Copy link
Member Author

@chris-olszewski the intention isn't to mirror events here one to one, but for the events tracked in the JS packages to be unique and specific to the JS packages. These also use a different event type on the backend that always tracks the package name and version as context.

I did think about napi for some of the shared code (like config) but the lift was low and didn't want to deal with the multi os / arch support here.

@tknickman tknickman merged commit 04e2a9f into main Mar 26, 2024
54 checks passed
@tknickman tknickman deleted the tomknickman/turbo-2686-port-telemetry-crate-to-js branch March 26, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants