You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4d2bd1e
Browse filesBrowse the repository at this point in the historyBrowse files
Simplify lifecycle and telemetry ownership for 2.0 (#444)
* Keep FastStream observability alive through shutdown (#434)
* Simplify lifecycle and telemetry ownership for 2.0
Implements #434, #435, #436, #438 and #440, and clarifies conflicting configuration arguments.
* Roll back OTel acquisitions and preserve borrowed FastAPI instrumentation
* Preserve request handling and borrowed tracing during teardown
Copy file name to clipboardExpand all lines: docs/introduction/configuration.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,7 @@ Additional parameters for FastAPI integration:
183
183
184
184
-`prometheus_instrumentator_additional_params` - passed to `prometheus_fastapi_instrumentator.Instrumentator`
185
185
-`prometheus_instrument_additional_params` - passed to `method Instrumentator(...).instrument`
186
-
-`prometheus_expose_additional_params` - passed to `method Instrumentator(...).expose`.
186
+
-`prometheus_expose_additional_params` - passed to `Instrumentator(...).expose`. Set the endpoint with `prometheus_metrics_path`.
187
187
188
188
### Prometheus FastMCP
189
189
@@ -343,7 +343,7 @@ Additional parameters:
343
343
344
344
-`pyroscope_sample_rate` - CPU profiling sample rate in Hz (default: `100`).
345
345
-`pyroscope_tags` - key/value string pairs attached to all profiles.
346
-
-`pyroscope_additional_params` - additional params passed directly to `pyroscope.configure`.
346
+
-`pyroscope_additional_params` - overrides the prepared arguments passed to `pyroscope.configure`.
347
347
348
348
When OpenTelemetry is also enabled, a `PyroscopeSpanProcessor` is automatically added to the tracer provider. It tags root spans with a `pyroscope.profile.id` attribute and sets Pyroscope thread tags so that traces and profiles can be linked in the Grafana UI.
349
349
@@ -511,6 +511,8 @@ To bootstrap swagger, you have the following parameters:
511
511
-`swagger_offline_docs` - option to turn on offline docs.
512
512
-`swagger_additional_params` - Litestar only: extra keyword arguments for `litestar.openapi.OpenAPIConfig`. It cannot repeat `path`, `title`, `version`, `description` or `render_plugins`, which lite-bootstrap already passes.
513
513
514
+
When lite-bootstrap creates the FastAPI application, set its docs URL with `swagger_path`.
515
+
514
516
Swagger is on by default at `swagger_path` (default: `/docs`). For Litestar, set `swagger_path` to an empty string to disable it.
0 commit comments