Skip to main content

Module layers

Module layers 

Source

Modules§

mock
prometheus 🔒

Structs§

ConcurrentLimitLayer
Add concurrent request limit.
DefaultLoggingInterceptor
The DefaultLoggingInterceptor will log the message by the standard logging macro.
DefaultRetryInterceptor
The DefaultRetryInterceptor will log the retry error in warning level.
HttpClientLayer
Layer for replacing the default HTTP client with a custom one.
LoggingLayer
Add log for every operation.
PrometheusLayer
Add prometheus for every operation.
PrometheusLayerBuilder
PrometheusLayerBuilder is a config builder to build a PrometheusLayer.
RetryLayer
Add retry for temporary failed operations.
SimulateLayer
Simulate missing capabilities for backends in a configurable way.
TimeoutLayer
Add timeout for every operation to avoid slow or unexpected hang operations.
TracingLayer
Add tracing for every operation.

Traits§

ConcurrentLimitSemaphore
ConcurrentLimitSemaphore abstracts a semaphore-like concurrency primitive that yields an owned permit released on drop.
LoggingInterceptor
LoggingInterceptor is used to intercept the log.
RetryInterceptor
RetryInterceptor is used to intercept while retry happened.

Functions§

build_prometheus_metrics_layer
This logical tries to extract parent path from the object storage operation the function also relies on assumption that the region path is built from pattern <data|index>/catalog/schema/table_id/... OR greptimedb/object_cache/<read|write>/...