Skip to content

add user level tracing#6701

Merged
sokra merged 6 commits into
mainfrom
sokra/user-tracing
Dec 5, 2023
Merged

add user level tracing#6701
sokra merged 6 commits into
mainfrom
sokra/user-tracing

Conversation

@sokra

@sokra sokra commented Dec 5, 2023

Copy link
Copy Markdown
Member

Description

Add a few user-focused info level spans that can be used to trace a normal build

Closes PACK-2082

@sokra sokra requested a review from a team as a code owner December 5, 2023 11:42
@vercel

vercel Bot commented Dec 5, 2023

Copy link
Copy Markdown
Contributor

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

Name Status Preview Comments Updated (UTC)
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 5, 2023 11:56am
10 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Dec 5, 2023 11:56am
examples-designsystem-docs ⬜️ Ignored (Inspect) Dec 5, 2023 11:56am
examples-gatsby-web ⬜️ Ignored (Inspect) Dec 5, 2023 11:56am
examples-kitchensink-blog ⬜️ Ignored (Inspect) Dec 5, 2023 11:56am
examples-native-web ⬜️ Ignored (Inspect) Dec 5, 2023 11:56am
examples-nonmonorepo ⬜️ Ignored (Inspect) Dec 5, 2023 11:56am
examples-svelte-web ⬜️ Ignored (Inspect) Dec 5, 2023 11:56am
examples-tailwind-web ⬜️ Ignored (Inspect) Dec 5, 2023 11:56am
examples-vite-web ⬜️ Ignored (Inspect) Dec 5, 2023 11:56am
turbo-site ⬜️ Ignored (Inspect) Dec 5, 2023 11:56am

@github-actions

github-actions Bot commented Dec 5, 2023

Copy link
Copy Markdown
Contributor

🟢 Turbopack Benchmark CI successful 🟢

Thanks

@github-actions

github-actions Bot commented Dec 5, 2023

Copy link
Copy Markdown
Contributor

✅ This change can build next-swc

@github-actions

github-actions Bot commented Dec 5, 2023

Copy link
Copy Markdown
Contributor

🟢 CI successful 🟢

Thanks

@github-actions

github-actions Bot commented Dec 5, 2023

Copy link
Copy Markdown
Contributor

Linux Benchmark for 1d11795

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 21.23ms ± 0.81ms 21.23ms ± 0.81ms -0.01%
bench_hmr_to_eval/Turbopack CSR/1000 modules 20.90ms ± 0.83ms 20.80ms ± 0.82ms -0.49%
bench_startup/Turbopack CSR/1000 modules 1084.29ms ± 6.11ms 1083.76ms ± 9.86ms -0.05%

Comment on lines +39 to +40
let _entered = current_span.entered();
let _entered = span.entered();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why are we entering 2 spans here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The span might be disabled, in that case we at least want to keep the current span

Ok(Vc::cell(assets))
Ok(Vc::cell(assets))
}
.instrument(span)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can't we "just" enter the span here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

For async methods one need to use instrument to "enter" the span on every poll.

EnteredSpan is not Send

@sokra sokra merged commit 94bb9b9 into main Dec 5, 2023
@sokra sokra deleted the sokra/user-tracing branch December 5, 2023 12:16
sokra added a commit to vercel/next.js that referenced this pull request Dec 5, 2023
* vercel/turborepo#6588 <!-- Leah - ci: remove daily
turbopack next.js integration test workflow -->
* vercel/turborepo#6666 <!-- Will Binns-Smith -
Turbopack css: treat `composes` and `@import` as urls when resolving -->
* vercel/turborepo#6701 <!-- Tobias Koppers - add
user level tracing -->
* vercel/turborepo#6616 <!-- Leah - feat(turbopack):
support "loading" WebAssembly injected as global varables in edge
runtime -->

Closes PACK-2086
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
### Description

Add a few user-focused info level spans that can be used to trace a
normal build


Closes PACK-2082
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

Add a few user-focused info level spans that can be used to trace a
normal build


Closes PACK-2082
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

Add a few user-focused info level spans that can be used to trace a
normal build


Closes PACK-2082
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
### Description

Add a few user-focused info level spans that can be used to trace a
normal build


Closes PACK-2082
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