From 998bbaefbb27660d54031f648974b3eb8ae62c03 Mon Sep 17 00:00:00 2001 From: deepakdinesh1123 Date: Sun, 7 Dec 2025 13:28:00 +0530 Subject: [PATCH] fix: add args to instrument_app docstring in starlette --- .../instrumentation/starlette/__init__.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/instrumentation/opentelemetry-instrumentation-starlette/src/opentelemetry/instrumentation/starlette/__init__.py b/instrumentation/opentelemetry-instrumentation-starlette/src/opentelemetry/instrumentation/starlette/__init__.py index c06d357e95..227c4dcf31 100644 --- a/instrumentation/opentelemetry-instrumentation-starlette/src/opentelemetry/instrumentation/starlette/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-starlette/src/opentelemetry/instrumentation/starlette/__init__.py @@ -229,7 +229,21 @@ def instrument_app( meter_provider: MeterProvider | None = None, tracer_provider: TracerProvider | None = None, ): - """Instrument an uninstrumented Starlette application.""" + """Instrument an uninstrumented Starlette application. + + Args: + app: The starlette 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 + scope and event which are sent as dictionaries for when the method receive is called. + client_response_hook: Optional callback which is called with the internal span, and ASGI + scope and event which are sent as dictionaries for when the method send is called. + meter_provider: The optional meter provider to use. If omitted + the current globally configured one is used. + tracer_provider: The optional tracer provider to use. If omitted + the current globally configured one is used. + """ tracer = get_tracer( __name__, __version__,