diff --git a/Sources/Prometheus/MetricTypes/Gauge.swift b/Sources/Prometheus/MetricTypes/Gauge.swift index 5933f7b..2f040bb 100644 --- a/Sources/Prometheus/MetricTypes/Gauge.swift +++ b/Sources/Prometheus/MetricTypes/Gauge.swift @@ -70,7 +70,7 @@ public class PromGauge: Prom } } - /// Sets the Gauge to the current unixtime in seconds + /// Sets the Gauge to the current unix-time in seconds /// /// - Parameters: /// - labels: Labels to attach to the value @@ -84,7 +84,7 @@ public class PromGauge: Prom /// Tracks in progress blocks of code or functions. /// /// func someFunc() -> String { return "ABC" } - /// let newFunc = myGauge.trackInprogress(someFunc) + /// let newFunc = myGauge.trackInProgress(someFunc) /// newFunc() // returns "ABC" and increments & decrements Gauge /// /// - Parameters: diff --git a/Sources/Prometheus/MetricTypes/PromMetric.swift b/Sources/Prometheus/MetricTypes/PromMetric.swift index d1585da..602786b 100644 --- a/Sources/Prometheus/MetricTypes/PromMetric.swift +++ b/Sources/Prometheus/MetricTypes/PromMetric.swift @@ -44,7 +44,7 @@ extension PromMetric { /// Adding a prometheus instance to all metrics internal protocol PrometheusHandled { - /// Promtheus client handling this metric + /// Prometheus client handling this metric var prometheus: PrometheusClient? { get } } diff --git a/Sources/Prometheus/Prometheus.swift b/Sources/Prometheus/Prometheus.swift index c3045fe..076f379 100644 --- a/Sources/Prometheus/Prometheus.swift +++ b/Sources/Prometheus/Prometheus.swift @@ -240,7 +240,7 @@ public class PrometheusClient { /// - type: The type the summary will observe /// - name: Name of the summary /// - helpText: Help text for the summary. Usually a short description - /// - quantiles: Quantiles to caluculate + /// - quantiles: Quantiles to calculate /// - labels: Labels to give this summary. Can be left out to default to no labels /// /// - Returns: Summary instance @@ -269,7 +269,7 @@ public class PrometheusClient { /// - type: The type the summary will observe /// - name: Name of the summary /// - helpText: Help text for the summary. Usually a short description - /// - quantiles: Quantiles to caluculate + /// - quantiles: Quantiles to calculate /// /// - Returns: Summary instance public func createSummary( @@ -284,8 +284,8 @@ public class PrometheusClient { /// Prometheus specific errors public enum PrometheusError: Error { - /// Thrown when a user tries to retrive - /// a `PromtheusClient` from `MetricsSystem` + /// Thrown when a user tries to retrieve + /// a `PrometheusClient` from `MetricsSystem` /// but there was no `PrometheusClient` bootstrapped case prometheusFactoryNotBootstrapped(bootstrappedWith: String) } diff --git a/Sources/Prometheus/PrometheusMetrics.swift b/Sources/Prometheus/PrometheusMetrics.swift index f8f8881..2fed018 100644 --- a/Sources/Prometheus/PrometheusMetrics.swift +++ b/Sources/Prometheus/PrometheusMetrics.swift @@ -183,7 +183,7 @@ public struct PrometheusLabelSanitizer: LabelSanitizer { } /// Defines the base for a bridge between PrometheusClient and swift-metrics. -/// Used by `SwiftMetrics.prometheus()` to get an instance of `PromtheusClient` from `MetricsSystem` +/// Used by `SwiftMetrics.prometheus()` to get an instance of `PrometheusClient` from `MetricsSystem` /// /// Any custom implementation of `MetricsFactory` using `PrometheusClient` should conform to this implementation. public protocol PrometheusWrappedMetricsFactory: MetricsFactory { @@ -360,7 +360,7 @@ public struct DimensionLabels: MetricLabels { /// Helper for dimensions /// swift-metrics api doesn't allow setting buckets explicitly. -/// If default buckets don't fit, this Labels implementation is a nice default to create Prometheus metric types wtih +/// If default buckets don't fit, this Labels implementation is a nice default to create Prometheus metric types with public struct DimensionHistogramLabels: HistogramLabels { /// Bucket public var le: String