-
Notifications
You must be signed in to change notification settings - Fork 232
Open
Labels
agent-pythoncommunityIssues opened by the communityIssues opened by the communitytriageIssues awaiting triageIssues awaiting triage
Description
Describe the bug:
I was expecting APM to help me understand whats going within my websocket connections (Django + Channels + Daphne). However, the very first line of ASGITracingMiddleware
ignores non-http scopes:
async def __call__(self, scope: "Scope", receive: "ASGIReceiveCallable", send: "ASGISendCallable") -> None:
if scope["type"] != "http":
await self._app(scope, receive, send)
return
To Reproduce
- Install elastic-apm
- Configure ELASTIC_APM settings
- Configure ASGITracingMiddleware middleware
- Kibana shows the service name but no traces
Environment (please complete the following information)
- OS: [e.g. Linux]
- Python version: 3.11
- Framework and version [e.g. Django 2.1]:
Django==4.2.11
channels==4.0.0
channels-redis==4.1.0
daphne==4.1.0
- APM Server version:
- Agent version:
elastic-apm==6.23.0
elastic-transport==8.15.0
elasticsearch==8.15.0
Is this expected or a bug?
Thank you
Abhinav
Metadata
Metadata
Assignees
Labels
agent-pythoncommunityIssues opened by the communityIssues opened by the communitytriageIssues awaiting triageIssues awaiting triage