Skip to content

Commit 84019b7

Browse files
committed
doc fix
1 parent 58ae807 commit 84019b7

File tree

1 file changed

+4
-4
lines changed
  • opentelemetry-otlp/src/exporter/tonic

1 file changed

+4
-4
lines changed

opentelemetry-otlp/src/exporter/tonic/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ impl HasTonicConfig for TonicExporterBuilder {
361361
/// ```
362362
/// # #[cfg(all(feature = "trace", feature = "grpc-tonic"))]
363363
/// # {
364-
/// use crate::opentelemetry_otlp::{WithExportConfig, WithTonicConfig};
364+
/// use opentelemetry_otlp::{WithExportConfig, WithTonicConfig};
365365
/// let exporter_builder = opentelemetry_otlp::SpanExporter::builder()
366366
/// .with_tonic()
367367
/// .with_compression(opentelemetry_otlp::Compression::Gzip);
@@ -383,7 +383,7 @@ pub trait WithTonicConfig {
383383
/// # #[cfg(feature = "grpc-tonic")]
384384
/// # {
385385
/// use tonic::metadata::MetadataMap;
386-
/// use crate::opentelemetry_otlp::WithTonicConfig;
386+
/// use opentelemetry_otlp::WithTonicConfig;
387387
///
388388
/// let mut metadata1 = MetadataMap::new();
389389
/// metadata1.insert("key1", "value1".parse().unwrap());
@@ -427,7 +427,7 @@ pub trait WithTonicConfig {
427427
/// # #[cfg(feature = "grpc-tonic")]
428428
/// # {
429429
/// use tonic::{Request, Status};
430-
/// use crate::opentelemetry_otlp::WithTonicConfig;
430+
/// use opentelemetry_otlp::WithTonicConfig;
431431
///
432432
/// fn auth_interceptor(mut req: Request<()>) -> Result<Request<()>, Status> {
433433
/// req.metadata_mut().insert("authorization", "Bearer token".parse().unwrap());
@@ -447,7 +447,7 @@ pub trait WithTonicConfig {
447447
/// # #[cfg(feature = "grpc-tonic")]
448448
/// # {
449449
/// use tonic::{Request, Status};
450-
/// use crate::opentelemetry_otlp::WithTonicConfig;
450+
/// use opentelemetry_otlp::WithTonicConfig;
451451
///
452452
/// fn auth_interceptor(mut req: Request<()>) -> Result<Request<()>, Status> {
453453
/// req.metadata_mut().insert("authorization", "Bearer token".parse().unwrap());

0 commit comments

Comments
 (0)