|
25 | 25 | //! telemetry. |
26 | 26 | //! |
27 | 27 | //! You will have to build a OTLP exporter first. Create the correct exporter based on the signal |
28 | | -//! you are looking to export `SpanExporter::builder()`, `MetricsExporter::builder()`, |
| 28 | +//! you are looking to export `SpanExporter::builder()`, `MetricExporter::builder()`, |
29 | 29 | //! `LogExporter::builder()` respectively for traces, metrics, and logs. |
30 | 30 | //! |
31 | 31 | //! Once you have the exporter, you can create your `Provider` by starting with `TracerProvider::builder()`, |
|
124 | 124 | //! |
125 | 125 | //! Generally there are two parts of configuration. One is the exporter, the other is the provider. |
126 | 126 | //! Users can configure the exporter using [SpanExporter::builder()] for traces, |
127 | | -//! and [MetricsExporter::builder()] + [opentelemetry_sdk::metrics::PeriodicReader::builder()] for metrics. |
| 127 | +//! and [MetricExporter::builder()] + [opentelemetry_sdk::metrics::PeriodicReader::builder()] for metrics. |
128 | 128 | //! Once you have an exporter, you can add it to either a [opentelemetry_sdk::trace::TracerProvider::builder()] for traces, |
129 | 129 | //! or [opentelemetry_sdk::metrics::SdkMeterProvider::builder()] for metrics. |
130 | 130 | //! |
|
171 | 171 | //! |
172 | 172 | //! # #[cfg(all(feature = "metrics", feature = "grpc-tonic"))] |
173 | 173 | //! # { |
174 | | -//! let exporter = opentelemetry_otlp::MetricsExporter::builder() |
| 174 | +//! let exporter = opentelemetry_otlp::MetricExporter::builder() |
175 | 175 | //! .with_tonic() |
176 | 176 | //! .with_endpoint("http://localhost:4318/v1/metrics") |
177 | 177 | //! .with_protocol(Protocol::Grpc) |
@@ -240,7 +240,7 @@ pub use crate::span::{ |
240 | 240 | #[cfg(feature = "metrics")] |
241 | 241 | #[cfg(any(feature = "http-proto", feature = "http-json", feature = "grpc-tonic"))] |
242 | 242 | pub use crate::metric::{ |
243 | | - MetricsExporter, OTEL_EXPORTER_OTLP_METRICS_COMPRESSION, OTEL_EXPORTER_OTLP_METRICS_ENDPOINT, |
| 243 | + MetricExporter, OTEL_EXPORTER_OTLP_METRICS_COMPRESSION, OTEL_EXPORTER_OTLP_METRICS_ENDPOINT, |
244 | 244 | OTEL_EXPORTER_OTLP_METRICS_HEADERS, OTEL_EXPORTER_OTLP_METRICS_TIMEOUT, |
245 | 245 | }; |
246 | 246 |
|
|
0 commit comments