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

Expose rust tracing instrumentation to javascript #246

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

yamadapc
Copy link
Contributor

@yamadapc yamadapc commented Dec 3, 2024

This commit adds a way to instrument javascript code with the rust tracing implementation.

This allows unified chrome profiles to be generated that include both rust and javascript spans.

Since span names need to be static, currently javascript spans will need to be labeled with a label arg/attribute.

This commit adds a way to instrument javascript code with the rust
tracing implementation.

This allows unified chrome profiles to be generated that include both
rust and javascript spans.

Since span names need to be static, currently javascript spans will need
to be labeled with a `label` arg/attribute.
@@ -14,7 +14,7 @@ import {
import {hashString} from '@atlaspack/rust';
import {normalizePath} from '@atlaspack/utils';

describe('bundler', function () {
describe.only('bundler', function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove only

@yamadapc yamadapc merged commit 3701139 into main Dec 3, 2024
17 checks passed
@yamadapc yamadapc deleted the expose-tracing-instrumentation-to-javascript branch December 3, 2024 03:24
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