Skip to content
Closed
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
4 changes: 2 additions & 2 deletions opentelemetry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ rustdoc-args = ["--cfg", "docsrs"]
futures-core = { workspace = true, optional = true }
futures-sink = { version = "0.3", optional = true }
pin-project-lite = { workspace = true, optional = true }
thiserror = { workspace = true, optional = true}
thiserror = { workspace = true }
Copy link
Member

@lalitb lalitb Dec 10, 2024

Choose a reason for hiding this comment

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

We want to keep optional dependency on thiserror. As of now, it is supposed to be used only when trace feature flag is enabled. If that is not the case, we should fix it.

Copy link
Author

@weichweich weichweich Dec 10, 2024

Choose a reason for hiding this comment

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

thiserror is used in opentelemetry::propagation. So it should be removed from there?

Copy link
Member

@lalitb lalitb Dec 10, 2024

Choose a reason for hiding this comment

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

propagators are only used in the context of traces. See if we can include it only if trace flag is enabled here -

pub mod propagation;

Copy link
Member

Choose a reason for hiding this comment

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

and also, you need to sign the CLA in order for this to be merged :)

Copy link
Author

Choose a reason for hiding this comment

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

If it's fine for you I would prefer to not sign the CLA and leave the fix to you? 😅 Thanks for getting back so quickly!

Copy link
Member

Choose a reason for hiding this comment

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

Sure. Thanks for the issue :)

tracing = {workspace = true, optional = true} # optional for opentelemetry internal logging

[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies]
js-sys = "0.3.63"

[features]
default = ["trace", "metrics", "logs", "internal-logs"]
trace = ["pin-project-lite", "futures-sink", "futures-core", "thiserror"]
trace = ["pin-project-lite", "futures-sink", "futures-core"]
metrics = []
testing = ["trace", "metrics"]
logs = []
Expand Down
Loading