_Middleware
Index
Methods
__init__
Parameters
middleware: Callable[[TCrawlingContext], AsyncGenerator[TMiddlewareCrawlingContext, Exception | None]]
input_context: TCrawlingContext
Returns None
action
Returns TMiddlewareCrawlingContext
cleanup
Parameters
final_consumer_exception: Exception | None
Returns None
Helper wrapper class to make the middleware easily observable by open telemetry instrumentation.