From d8eb98b19cced55be7556fc0eeddd24313430fa8 Mon Sep 17 00:00:00 2001 From: Zhongyang Wu Date: Sat, 13 Aug 2022 15:51:07 -0700 Subject: [PATCH] fix(doc): fix type link in docs --- opentelemetry-otlp/src/metric.rs | 2 +- opentelemetry-proto/src/transform/metrics.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opentelemetry-otlp/src/metric.rs b/opentelemetry-otlp/src/metric.rs index 582223dd5d..3300421451 100644 --- a/opentelemetry-otlp/src/metric.rs +++ b/opentelemetry-otlp/src/metric.rs @@ -1,6 +1,6 @@ //! OTEL metric exporter //! -//! Defines a [Exporter] to send metric data to backend via OTEL protocol. +//! Defines a [MetricsExporter] to send metric data to backend via OTEL protocol. //! //! Currently, OTEL metrics exporter only support GRPC connection via tonic on tokio runtime. diff --git a/opentelemetry-proto/src/transform/metrics.rs b/opentelemetry-proto/src/transform/metrics.rs index d95574dbfe..b31e08e80c 100644 --- a/opentelemetry-proto/src/transform/metrics.rs +++ b/opentelemetry-proto/src/transform/metrics.rs @@ -19,8 +19,8 @@ pub mod tonic { use opentelemetry::{Key, Value}; - /// Convert [`Number`](opentelemetry::metrics::Number) to target type based - /// on it's [`NumberKind`](opentelemetry::metrics::NumberKind). + /// Convert [`Number`](opentelemetry::sdk::metrics::sdk_api::Number) to target type based + /// on it's [`NumberKind`](opentelemetry::sdk::metrics::sdk_api::NumberKind). pub trait FromNumber { fn from_number(number: Number, number_kind: &NumberKind) -> Self; }