This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new b571e41114 fix(layers/promethues-client): doc link (#4951)
b571e41114 is described below
commit b571e4111452880aa4512f5dc2e8aaa897703869
Author: Qinxuan Chen <[email protected]>
AuthorDate: Thu Aug 1 19:15:37 2024 +0800
fix(layers/promethues-client): doc link (#4951)
* fix(layers/prometheus-client): doc link
* fix(layers): some typo
---
core/src/layers/fastrace.rs | 2 +-
core/src/layers/logging.rs | 2 +-
core/src/layers/metrics.rs | 2 +-
core/src/layers/oteltrace.rs | 2 +-
core/src/layers/prometheus.rs | 2 +-
core/src/layers/prometheus_client.rs | 4 ++--
core/src/layers/timeout.rs | 2 +-
core/src/layers/tracing.rs | 2 +-
8 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/core/src/layers/fastrace.rs b/core/src/layers/fastrace.rs
index 5e7119a0e5..3af23c4be5 100644
--- a/core/src/layers/fastrace.rs
+++ b/core/src/layers/fastrace.rs
@@ -28,7 +28,7 @@ use crate::raw::oio::WriteOperation;
use crate::raw::*;
use crate::*;
-/// Add [fastrace](https://docs.rs/fastrace/) for every operations.
+/// Add [fastrace](https://docs.rs/fastrace/) for every operation.
///
/// # Examples
///
diff --git a/core/src/layers/logging.rs b/core/src/layers/logging.rs
index ca45a80f13..b56f716455 100644
--- a/core/src/layers/logging.rs
+++ b/core/src/layers/logging.rs
@@ -33,7 +33,7 @@ use crate::raw::oio::WriteOperation;
use crate::raw::*;
use crate::*;
-/// Add [log](https://docs.rs/log/) for every operations.
+/// Add [log](https://docs.rs/log/) for every operation.
///
/// # Logging
///
diff --git a/core/src/layers/metrics.rs b/core/src/layers/metrics.rs
index 5dc220a123..f051df08e7 100644
--- a/core/src/layers/metrics.rs
+++ b/core/src/layers/metrics.rs
@@ -56,7 +56,7 @@ static LABEL_OPERATION: &str = "operation";
/// The error kind of this failed request.
static LABEL_ERROR: &str = "error";
-/// Add [metrics](https://docs.rs/metrics/) for every operations.
+/// Add [metrics](https://docs.rs/metrics/) for every operation.
///
/// # Metrics
///
diff --git a/core/src/layers/oteltrace.rs b/core/src/layers/oteltrace.rs
index c03233d12f..659134377c 100644
--- a/core/src/layers/oteltrace.rs
+++ b/core/src/layers/oteltrace.rs
@@ -31,7 +31,7 @@ use opentelemetry::KeyValue;
use crate::raw::*;
use crate::*;
-/// Add
[opentelemetry::trace](https://docs.rs/opentelemetry/latest/opentelemetry/trace/index.html)
for every operations.
+/// Add
[opentelemetry::trace](https://docs.rs/opentelemetry/latest/opentelemetry/trace/index.html)
for every operation.
///
/// Examples
///
diff --git a/core/src/layers/prometheus.rs b/core/src/layers/prometheus.rs
index a4359ead72..44bb2a5eb4 100644
--- a/core/src/layers/prometheus.rs
+++ b/core/src/layers/prometheus.rs
@@ -37,7 +37,7 @@ use crate::raw::Access;
use crate::raw::*;
use crate::*;
-/// Add [prometheus](https://docs.rs/prometheus) for every operations.
+/// Add [prometheus](https://docs.rs/prometheus) for every operation.
///
/// # Prometheus Metrics
///
diff --git a/core/src/layers/prometheus_client.rs
b/core/src/layers/prometheus_client.rs
index 99ac2b35e2..b4f01244f2 100644
--- a/core/src/layers/prometheus_client.rs
+++ b/core/src/layers/prometheus_client.rs
@@ -37,7 +37,7 @@ use crate::raw::Access;
use crate::raw::*;
use crate::*;
-/// Add [prometheus](https://docs.rs/prometheus) for every operations.
+/// Add [prometheus-client](https://docs.rs/prometheus-client) for every
operation.
///
/// # Examples
///
@@ -88,7 +88,7 @@ pub struct PrometheusClientLayer {
impl PrometheusClientLayer {
/// Create PrometheusClientLayer while registering itself to this
registry. Please keep in caution
- /// that do NOT call this method multiple times with a same registry. If
you want initialize multiple
+ /// that do NOT call this method multiple times with a same registry. If
you want to initialize multiple
/// [`PrometheusClientLayer`] with a single registry, you should use
[`Arc::clone`] instead.
pub fn new(registry: &mut Registry) -> Self {
let metrics = PrometheusClientMetricDefinitions::register(registry);
diff --git a/core/src/layers/timeout.rs b/core/src/layers/timeout.rs
index 095d1044fd..b57ca85413 100644
--- a/core/src/layers/timeout.rs
+++ b/core/src/layers/timeout.rs
@@ -25,7 +25,7 @@ use crate::raw::oio::WriteOperation;
use crate::raw::*;
use crate::*;
-/// Add timeout for every operations to avoid slow or unexpected hang
operations.
+/// Add timeout for every operation to avoid slow or unexpected hang
operations.
///
/// For example, a dead connection could hang a databases sql query.
TimeoutLayer
/// will break this connection and returns an error so users can handle it by
diff --git a/core/src/layers/tracing.rs b/core/src/layers/tracing.rs
index ff5c4c79eb..f95ac60b6b 100644
--- a/core/src/layers/tracing.rs
+++ b/core/src/layers/tracing.rs
@@ -25,7 +25,7 @@ use tracing::Span;
use crate::raw::*;
use crate::*;
-/// Add [tracing](https://docs.rs/tracing/) for every operations.
+/// Add [tracing](https://docs.rs/tracing/) for every operation.
///
/// # Examples
///