jina.serve.runtimes.gateway.websocket.app module#

jina.serve.runtimes.gateway.websocket.app.get_fastapi_app(streamer, logger, tracing=None, tracer_provider=None)[source]#

Get the app from FastAPI as the Websocket interface.

Parameters:
  • streamer (GatewayStreamer) – gateway streamer object.

  • logger (JinaLogger) – Jina logger.

  • tracing (Optional[bool]) – Enables tracing is set to True.

  • tracer_provider (Optional[TracerProvider]) – If tracing is enabled the tracer_provider will be used to instrument the code.

Returns:

fastapi app