| 398 | _, exporter = tracer_provider |
| 399 | |
| 400 | class CustomRoute(BaseRoute): |
| 401 | def matches(self, scope: Scope) -> tuple[Match, Scope]: |
| 402 | return Match.FULL, {} |
| 403 | |
| 404 | async def handle(self, scope: Scope, receive: Receive, send: Send) -> None: |
| 405 | await PlainTextResponse("custom")(scope, receive, send) |
| 406 | |
| 407 | app = Starlette(routes=[CustomRoute()], middleware=[Middleware(OpenTelemetryMiddleware)]) |
| 408 |
no outgoing calls