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(swc/cli): add trace configuration for compile #3746

Merged
merged 2 commits into from Feb 26, 2022

Conversation

kwonoj
Copy link
Member

@kwonoj kwonoj commented Feb 25, 2022

Description:

This PR enables trace for the cli as well, via --experimental-trace boolean flag.

Related issue (if exists):

Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -259,6 +291,8 @@ impl super::CommandRunner for CompileOptions {
}

if let Some(stdin_input) = stdin_input {
let span = tracing::span!(tracing::Level::TRACE, "compile_stdin");
let _ = span.enter();
Copy link
Member

Choose a reason for hiding this comment

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

This will immediately drop

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks for catch, I forgot to update this along with non-stdin input spans.

Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

Thanks!


swc-bump:

  • swc_cli

@kdy1 kdy1 enabled auto-merge (squash) February 26, 2022 03:15
@kdy1 kdy1 added this to the v1.2.146 milestone Feb 26, 2022
@kdy1 kdy1 merged commit 41f92d2 into swc-project:main Feb 26, 2022
@kwonoj kwonoj deleted the feat-cli-trace branch March 5, 2022 04:52
@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants