ObservabilityHostingManager Class
Singleton manager for configuring hosting-layer observability middleware.
Private constructor — use configure instead.
Constructor
ObservabilityHostingManager()
Examples
ObservabilityHostingManager.configure(adapter.middleware_set, ObservabilityHostingOptions(
enable_output_logging=True,
))
Methods
| configure |
Configure the singleton instance and register middleware. Subsequent calls after the first are no-ops and return the existing instance. |
configure
Configure the singleton instance and register middleware.
Subsequent calls after the first are no-ops and return the existing instance.
configure(middleware_set: MiddlewareSet, options: ObservabilityHostingOptions) -> ObservabilityHostingManager
Parameters
| Name | Description |
|---|---|
|
middleware_set
Required
|
The middleware set to register middleware on
(e.g., |
|
options
Required
|
Configuration options controlling which middleware to enable. |
Returns
| Type | Description |
|---|---|
|
The singleton ObservabilityHostingManager instance. |
Exceptions
| Type | Description |
|---|---|
|
If middleware_set or options is |