From 998bbaefbb27660d54031f648974b3eb8ae62c03 Mon Sep 17 00:00:00 2001 From: deepakdinesh1123 Date: Sun, 7 Dec 2025 13:28:00 +0530 Subject: [PATCH 1/2] 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__, From 349d7f5723978e9100d3256e08c79fc2fe58ee23 Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Mon, 22 Dec 2025 15:14:11 +0100 Subject: [PATCH 2/2] Update docs-requirements.txt --- docs-requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs-requirements.txt b/docs-requirements.txt index afd03672d0..714777aa5a 100644 --- a/docs-requirements.txt +++ b/docs-requirements.txt @@ -44,6 +44,7 @@ pyramid>=1.7 redis>=2.6 remoulade>=0.50 sqlalchemy>=1.0 +starlette~=0.50 tornado>=5.1.1 tortoise-orm>=0.17.0