Skip to content

Commit a094cd9

Browse files
committed
docs: fix broken links
1 parent 773803c commit a094cd9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl Default for HttpConfig {
7575
///
7676
/// ```
7777
/// # #[cfg(feature="metrics")]
78-
/// use opentelemetry_sdk::metrics::data:Temporality;
78+
/// use opentelemetry_sdk::metrics::data::Temporality;
7979
///
8080
/// # fn main() -> Result<(), Box<dyn std::error::Error>> {
8181
/// // Create a span exporter you can use to when configuring tracer providers

opentelemetry-sdk/src/metrics/exporter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ pub trait PushMetricsExporter: Send + Sync + 'static {
2929
/// instead will return an error indicating the shutdown state.
3030
fn shutdown(&self) -> Result<()>;
3131

32-
/// Access the [Temporality] of the [MetricExporter]
32+
/// Access the [Temporality] of the MetricExporter.
3333
fn temporality(&self) -> Temporality;
3434
}

opentelemetry-sdk/src/metrics/periodic_reader.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,13 +371,13 @@ impl MetricReader for PeriodicReader {
371371
shutdown_result
372372
}
373373

374-
/// To construct a MetricReader when setting up an SDK,
374+
/// To construct a [MetricReader][metric-reader] when setting up an SDK,
375375
/// The output temporality (optional), a function of instrument kind.
376376
/// This function SHOULD be obtained from the exporter.
377377
///
378378
/// If not configured, the Cumulative temporality SHOULD be used.
379379
///
380-
/// https://github.com/open-telemetry/opentelemetry-specification/blob/0a78571045ca1dca48621c9648ec3c832c3c541c/specification/metrics/sdk.md#metricreader
380+
/// [metric-reader]: https://github.com/open-telemetry/opentelemetry-specification/blob/0a78571045ca1dca48621c9648ec3c832c3c541c/specification/metrics/sdk.md#metricreader
381381
fn temporality(&self, kind: InstrumentKind) -> super::data::Temporality {
382382
kind.temporality_preference(self.exporter.temporality())
383383
}

0 commit comments

Comments
 (0)