From 73859c3bd7a4278a1a23433036b8f678bda565dc Mon Sep 17 00:00:00 2001 From: Utkarsh Umesan Pillai <66651184+utpilla@users.noreply.github.com> Date: Mon, 13 Jan 2025 18:01:25 -0800 Subject: [PATCH] Add internal-logs feature to opentelemetry-proto (#2507) --- opentelemetry-proto/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opentelemetry-proto/Cargo.toml b/opentelemetry-proto/Cargo.toml index 5ab08257f3..ff7e428405 100644 --- a/opentelemetry-proto/Cargo.toml +++ b/opentelemetry-proto/Cargo.toml @@ -30,7 +30,7 @@ path = "tests/json_serde.rs" [features] default = ["full"] -full = ["gen-tonic", "trace", "logs", "metrics", "zpages", "with-serde"] +full = ["gen-tonic", "trace", "logs", "metrics", "zpages", "with-serde", "internal-logs"] # crates used to generate rs files gen-tonic = ["gen-tonic-messages", "tonic/transport"] @@ -44,6 +44,7 @@ zpages = ["trace"] testing = ["opentelemetry/testing"] # add ons +internal-logs = ["tracing"] with-schemars = ["schemars"] with-serde = ["serde", "hex"] @@ -55,6 +56,7 @@ opentelemetry_sdk = { version = "0.27", default-features = false, path = "../ope schemars = { version = "0.8", optional = true } serde = { workspace = true, optional = true, features = ["serde_derive"] } hex = { version = "0.4.3", optional = true } +tracing = {workspace = true, optional = true} # optional for opentelemetry internal logging [dev-dependencies] opentelemetry = { features = ["testing"], path = "../opentelemetry" }