Skip to content

Commit e058adf

Browse files
committed
Fix feature flags
1 parent de3147a commit e058adf

File tree

2 files changed

+2
-5
lines changed
  • opentelemetry-otlp/src/exporter
  • opentelemetry-proto/src/transform

2 files changed

+2
-5
lines changed

opentelemetry-otlp/src/exporter/mod.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ pub const OTEL_EXPORTER_OTLP_COMPRESSION: &str = "OTEL_EXPORTER_OTLP_COMPRESSION
3131
#[cfg(feature = "http-json")]
3232
/// Default protocol, using http-json.
3333
pub const OTEL_EXPORTER_OTLP_PROTOCOL_DEFAULT: &str = OTEL_EXPORTER_OTLP_PROTOCOL_HTTP_JSON;
34-
#[cfg(all(
35-
feature = "http-proto",
36-
not(any(feature = "grpc-tonic", feature = "http-json"))
37-
))]
34+
#[cfg(all(feature = "http-proto", not(feature = "http-json")))]
3835
/// Default protocol, using http-proto.
3936
pub const OTEL_EXPORTER_OTLP_PROTOCOL_DEFAULT: &str = OTEL_EXPORTER_OTLP_PROTOCOL_HTTP_PROTOBUF;
4037
#[cfg(all(

opentelemetry-proto/src/transform/logs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[cfg(feature = "gen-tonic")]
1+
#[cfg(feature = "gen-tonic-messages")]
22
pub mod tonic {
33
use crate::{
44
tonic::{

0 commit comments

Comments
 (0)