Skip to content

Commit 972ce98

Browse files
committed
fix doc
1 parent 7e81f1d commit 972ce98

File tree

2 files changed

+3
-22
lines changed

2 files changed

+3
-22
lines changed

opentelemetry-sdk/CHANGELOG.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -337,25 +337,6 @@ let processor = BatchLogProcessor::builder(exporter)
337337
.build();
338338
```
339339

340-
- Added `with_periodic_exporter` method to `MeterProviderBuilder`, allowing
341-
users to easily attach an exporter with a PeriodicReader for automatic metric
342-
export. Retained with_reader() for advanced use cases where a custom
343-
MetricReader configuration is needed.
344-
Example Usage:
345-
346-
```rust
347-
SdkMeterProvider::builder()
348-
.with_periodic_exporter(exporter)
349-
.build();
350-
```
351-
352-
Using a custom PeriodicReader (advanced use case):
353-
354-
let reader = PeriodicReader::builder(exporter).build();
355-
SdkMeterProvider::builder()
356-
.with_reader(reader)
357-
.build();
358-
359340
## 0.27.1
360341

361342
Released 2024-Nov-27

opentelemetry-sdk/src/metrics/meter_provider.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ impl MeterProviderBuilder {
245245
}
246246

247247
/// Associates a [MetricReader] with a [MeterProvider].
248-
/// [`with_periodic_exporter`] can be used to add a PeriodicReader which is
248+
/// [`MeterProviderBuilder::with_periodic_exporter()] can be used to add a PeriodicReader which is
249249
/// the most common use case.
250250
///
251251
/// A [MeterProvider] will export no metrics without [MetricReader]
@@ -265,8 +265,8 @@ impl MeterProviderBuilder {
265265
///
266266
/// Most users should use this method to attach an exporter. Advanced users
267267
/// who need finer control over the export process can use
268-
/// [`PeriodicReaderBuilder`] to configure a custom reader and attach it
269-
/// using [`with_reader`].
268+
/// [`crate::metrics::PeriodicReaderBuilder`] to configure a custom reader and attach it
269+
/// using [`MeterProviderBuilder::with_reader()`].
270270
pub fn with_periodic_exporter<T>(mut self, exporter: T) -> Self
271271
where
272272
T: PushMetricExporter,

0 commit comments

Comments
 (0)