Skip to content

Commit bead802

Browse files
Copilotcijothomas
andcommitted
Add serde_json dependency to opentelemetry-proto when with-serde feature is enabled
Co-authored-by: cijothomas <[email protected]>
1 parent 12f105e commit bead802

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opentelemetry-proto/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ testing = ["opentelemetry/testing"]
4949
# add ons
5050
internal-logs = ["opentelemetry/internal-logs"]
5151
with-schemars = ["schemars"]
52-
with-serde = ["serde", "const-hex", "base64"]
52+
with-serde = ["serde", "const-hex", "base64", "serde_json"]
5353

5454
[dependencies]
5555
tonic = { workspace = true, optional = true, features = ["codegen", "prost"] }
@@ -58,6 +58,7 @@ opentelemetry = { workspace = true }
5858
opentelemetry_sdk = { workspace = true }
5959
schemars = { workspace = true, optional = true }
6060
serde = { workspace = true, optional = true, features = ["serde_derive"] }
61+
serde_json = { workspace = true, optional = true }
6162
const-hex = { workspace = true, optional = true }
6263
base64 = { workspace = true, optional = true }
6364

0 commit comments

Comments
 (0)