Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(layers/promethues-client): doc link #4951

Merged
merged 2 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/layers/fastrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down
2 changes: 1 addition & 1 deletion core/src/layers/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down
2 changes: 1 addition & 1 deletion core/src/layers/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down
2 changes: 1 addition & 1 deletion core/src/layers/oteltrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down
2 changes: 1 addition & 1 deletion core/src/layers/prometheus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down
4 changes: 2 additions & 2 deletions core/src/layers/prometheus_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion core/src/layers/timeout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion core/src/layers/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down
Loading