deeper log model
This commit is contained in:
Binary file not shown.
@@ -34,3 +34,19 @@ async def configure_log_shipping():
|
||||
return await log_ingest.configure_site_output()
|
||||
except Exception as exc:
|
||||
raise HTTPException(status_code=500, detail=str(exc)) from exc
|
||||
|
||||
|
||||
@router.post("/logs/traces/start")
|
||||
async def start_trace(supi: str = Query(min_length=3)):
|
||||
try:
|
||||
return await log_ingest.start_subscriber_trace(supi)
|
||||
except Exception as exc:
|
||||
raise HTTPException(status_code=500, detail=str(exc)) from exc
|
||||
|
||||
|
||||
@router.post("/logs/traces/stop")
|
||||
async def stop_trace():
|
||||
try:
|
||||
return await log_ingest.stop_subscriber_trace()
|
||||
except Exception as exc:
|
||||
raise HTTPException(status_code=500, detail=str(exc)) from exc
|
||||
|
||||
Reference in New Issue
Block a user