Skip to content

Commit 73859c3

Browse files
authored
Add internal-logs feature to opentelemetry-proto (#2507)
1 parent 6cc327d commit 73859c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opentelemetry-proto/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ path = "tests/json_serde.rs"
3030

3131
[features]
3232
default = ["full"]
33-
full = ["gen-tonic", "trace", "logs", "metrics", "zpages", "with-serde"]
33+
full = ["gen-tonic", "trace", "logs", "metrics", "zpages", "with-serde", "internal-logs"]
3434

3535
# crates used to generate rs files
3636
gen-tonic = ["gen-tonic-messages", "tonic/transport"]
@@ -44,6 +44,7 @@ zpages = ["trace"]
4444
testing = ["opentelemetry/testing"]
4545

4646
# add ons
47+
internal-logs = ["tracing"]
4748
with-schemars = ["schemars"]
4849
with-serde = ["serde", "hex"]
4950

@@ -55,6 +56,7 @@ opentelemetry_sdk = { version = "0.27", default-features = false, path = "../ope
5556
schemars = { version = "0.8", optional = true }
5657
serde = { workspace = true, optional = true, features = ["serde_derive"] }
5758
hex = { version = "0.4.3", optional = true }
59+
tracing = {workspace = true, optional = true} # optional for opentelemetry internal logging
5860

5961
[dev-dependencies]
6062
opentelemetry = { features = ["testing"], path = "../opentelemetry" }

0 commit comments

Comments
 (0)