From 9daafa75576a2a33dc486f5f74b52795556da2bc Mon Sep 17 00:00:00 2001 From: Tobias Backer Dirks Date: Tue, 20 Aug 2024 10:31:36 +0300 Subject: [PATCH] docs: appease sphinx autodoc --- .../src/opentelemetry/instrumentation/fastapi/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi/__init__.py b/instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi/__init__.py index a2cf0046c7..a4668a9f73 100644 --- a/instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi/__init__.py @@ -222,7 +222,7 @@ class FastAPIInstrumentor(BaseInstrumentor): @staticmethod def instrument_app( - app: fastapi.FastAPI, + app, server_request_hook: ServerRequestHook = None, client_request_hook: ClientRequestHook = None, client_response_hook: ClientResponseHook = None, @@ -238,7 +238,7 @@ def instrument_app( """Instrument an uninstrumented FastAPI application. Args: - app: The ASGI application callable to forward requests to. + app: The fastapi ASGI application callable to forward requests to. server_request_hook: Optional callback which is called with the server span and ASGI scope object for every incoming request. client_request_hook: Optional callback which is called with the internal span, and ASGI