Skip to main content

Module layers

Module layers 

Source

Modules§

mock
prometheus 🔒

Structs§

CapabilityOverrideLayer
Layer for overriding an operator’s effective capability.
ConcurrentLimitLayer
ConcurrentLimitLayer controls how many concurrent requests OpenDAL can send to a storage service.
DefaultLoggingInterceptor
The DefaultLoggingInterceptor will log the message by the standard logging macro.
DefaultRetryInterceptor
The DefaultRetryInterceptor logs each retry error at warn level.
LoggingLayer
LoggingLayer records every operation with log.
PrometheusLayer
PrometheusLayer records OpenDAL operation and HTTP fetch metrics with prometheus.
PrometheusLayerBuilder
PrometheusLayerBuilder is a config builder to build a PrometheusLayer.
RetryEvent
Context passed to RetryInterceptor before each retry sleep.
RetryLayer
RetryLayer retries temporarily failed operations.
SimulateLayer
Simulate missing capabilities for backends in a configurable way.
TimeoutLayer
TimeoutLayer adds deadlines to operations so slow or stalled work cannot hang indefinitely.
TracingLayer
TracingLayer traces every operation with tracing.

Traits§

ConcurrentLimitSemaphore
ConcurrentLimitSemaphore abstracts a semaphore-like concurrency primitive that yields an owned permit released on drop.
LoggingInterceptor
LoggingInterceptor customizes log emission.
RetryInterceptor
RetryInterceptor observes retry attempts before the retry sleep.

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>/...