Skip to content

Commit d771fab

Browse files
committed
comment
1 parent 70379a9 commit d771fab

File tree

1 file changed

+2
-2
lines changed
  • rust/otap-dataflow/crates/pdata/src/proto

1 file changed

+2
-2
lines changed

rust/otap-dataflow/crates/pdata/src/proto/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ pub mod opentelemetry {
9191
/// objects are required. OtlpProtoBytes has an efficient translation
9292
/// into OtapArrowRecords, this type does not.
9393
///
94-
///
9594
/// Note this could be considered for #[cfg(test)], however we are
9695
/// aware of uses in otap-df-otap's fake_signal_generator and
9796
/// debug_processor.
@@ -259,7 +258,8 @@ impl From<opentelemetry::trace::v1::TracesData> for OtlpProtoMessage {
259258
}
260259
}
261260

262-
//#[cfg(test)]
261+
// This would be #[cfg(test)] because it's an expensive operation we
262+
// never expect in production, except we can't because ... (not sure)
263263
impl TryFrom<crate::otlp::OtlpProtoBytes> for OtlpProtoMessage {
264264
type Error = prost::DecodeError;
265265

0 commit comments

Comments
 (0)