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

refactor: tracing #8195

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
"ukey",
"Ukey"
]
}
}
139 changes: 121 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ ustr = { package = "ustr-fxhash", version = "1.0.0" }
xxhash-rust = { version = "0.8.10" }

# Pinned
napi = { version = "3.0.0-alpha.19" }
napi = { version = "3.0.0-alpha.19", features = ["anyhow"] }
napi-build = { version = "2" }
napi-derive = { version = "3.0.0-alpha.17" }

Expand Down
8 changes: 5 additions & 3 deletions crates/node_binding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ default = []
plugin = ["rspack_binding_options/plugin"]

[dependencies]
anyhow = { workspace = true }
ropey = { workspace = true }
rspack_allocator = { version = "0.1.0", path = "../rspack_allocator" }
rspack_binding_options = { version = "0.1.0", path = "../rspack_binding_options" }
Expand All @@ -33,9 +34,10 @@ rspack_util = { version = "0.1.0", path = "../rspack_util" }

rspack_tracing = { version = "0.1.0", path = "../rspack_tracing" }

async-trait = { workspace = true }
cow-utils = { workspace = true }
tracing = { workspace = true }
async-trait = { workspace = true }
cow-utils = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }

napi = { workspace = true }
napi-derive = { workspace = true }
Expand Down
3 changes: 2 additions & 1 deletion crates/node_binding/binding.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ export interface JsLoaderContext {
loaderIndex: number
loaderState: Readonly<JsLoaderState>
__internal__error?: JsRspackError
__internal__tracingCarrier?: Record<string, string>
}

export interface JsLoaderItem {
Expand Down Expand Up @@ -1971,7 +1972,7 @@ export interface RawTrustedTypes {
* Author Donny/강동윤
* Copyright (c)
*/
export declare function registerGlobalTrace(filter: string, layer: "chrome" | "logger"| "console", output: string): void
export declare function registerGlobalTrace(filter: string, layer: "chrome" | "logger"| "console" | "otel", output: string): void

export declare enum RegisterJsTapKind {
CompilerThisCompilation = 0,
Expand Down
Loading
Loading