我试图从Django应用程序中的芹菜任务中获取跟踪。我用的是AWS的X光片。我得到了正常HTTP调用、SQL数据库查询的跟踪,但没有芹菜任务或Redis的跟踪。已实现任务中的日志语句在X射线中可用。
在我的AppConfig
实现中,我完成了通常的操作:
from aws_xray_sdk.core import patch_all
patch_all()
from aws_xray_sdk.core import xray_recorder
# Need a default segment to avoid issues when running migrations and other management commands
xray_recorder.begin_segment("migrations")
我应该怎样做才能从芹菜任务和Redis中找到踪迹
目前X-Ray SDK不支持芹菜和Redis
相关问题 更多 >
编程相关推荐