Skip to content

Commit 2150812

Browse files
add documentation to re-exported tonic types
1 parent bd0af70 commit 2150812

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opentelemetry-otlp/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -451,13 +451,16 @@ pub enum Protocol {
451451
/// Placeholder type when no exporter pipeline has been configured in telemetry pipeline.
452452
pub struct NoExporterConfig(());
453453

454+
/// Re-exported types from the `tonic` crate.
454455
#[cfg(feature = "grpc-tonic")]
455456
pub mod tonic_types {
457+
/// Re-exported types from `tonic::metadata`.
456458
pub mod metadata {
457459
#[doc(no_inline)]
458460
pub use tonic::metadata::MetadataMap;
459461
}
460462

463+
/// Re-exported types from `tonic::transport`.
461464
#[cfg(feature = "tls")]
462465
pub mod transport {
463466
#[doc(no_inline)]

0 commit comments

Comments
 (0)