Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pyramid>=1.7
redis>=2.6
remoulade>=0.50
sqlalchemy>=1.0
starlette~=0.50
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this is not enough to please tox -e docs

tornado>=5.1.1
tortoise-orm>=0.17.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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__,
Expand Down
Loading