Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the usage of "server_app"? #5

Closed
kigawas opened this issue Aug 5, 2021 · 1 comment
Closed

What is the usage of "server_app"? #5

kigawas opened this issue Aug 5, 2021 · 1 comment

Comments

@kigawas
Copy link

kigawas commented Aug 5, 2021

class PyInstrumentProfilerMiddleware:
    def __init__(
        self,
        app: ASGIApp,
        *,
        server_app: Optional[Router] = None,
        profiler_interval: float = 0.0001,
        profiler_output_type: str = "text",
        is_print_each_request: bool = True,
        **profiler_kwargs,
    ):
        self.app = app
        self._profiler = Profiler(interval=profiler_interval)
        self._server_app = server_app

It looks like the server_app is used nowhere, can you explain what it is?

@sunhailin-Leo
Copy link
Owner

@kigawas add_evevnt_handler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants