Skip to content

Commit cd5e064

Browse files
flxdotdanfimov
authored andcommitted
Fix heading levels in middlewares documentation
Updated headings in the middlewares documentation to improve formatting and consistency.
1 parent 1ce4257 commit cd5e064

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/available-components/middlewares.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ order: 5
77
Middlewares allow you to execute code when specific event occurs.
88
Taskiq has several default middlewares.
99

10-
### Simple retry middleware
10+
## Simple retry middleware
1111

1212
This middleware allows you to restart functions on errors. If exception was raised during task execution,
1313
the task would be resent with same parameters.
@@ -38,7 +38,7 @@ async def test():
3838

3939
The `SmartRetryMiddleware` automatically retries tasks with flexible delay settings and retry strategies when errors occur. This is particularly useful when tasks fail due to temporary issues, such as network errors or temporary unavailability of external services.
4040

41-
### Key Features:
41+
### Key Features
4242

4343
* **Retry Limits**: Set the maximum number of retry attempts (`max_retries`).
4444
* **Delay Before Retry**: Define a fixed delay or use additional strategies.
@@ -85,7 +85,7 @@ Use jitter and exponential backoff to avoid repetitive load peaks, especially in
8585

8686

8787

88-
### Prometheus middleware
88+
## Prometheus middleware
8989

9090
You can enable prometheus metrics for workers by adding `PrometheusMiddleware`.
9191
To do so, you need to install `prometheus_client` package or you can install metrics extras for taskiq.
@@ -119,7 +119,7 @@ broker = ZeroMQBroker().with_middlewares(
119119
After that, metrics will be available at port 9000. Of course, this parameter can be configured.
120120
If you have other metrics, they'll be shown as well.
121121

122-
### OpenTelemetry Middleware
122+
## OpenTelemetry Middleware
123123

124124
You can enable opentelemetry tracing for workers by adding `OpenTelemetryMiddleware` or using `TaskiqInstrumentor` (preferred).
125125

0 commit comments

Comments
 (0)