2026-11-02 12:16:49 +08:00
|
|
|
"""Durable application trace delivery routed by ``OPS_TRACE_QUEUE``."""
|
2026-10-22 02:11:12 +00:00
|
|
|
|
|
|
|
|
from celery import shared_task
|
|
|
|
|
|
2026-11-02 12:16:49 +08:00
|
|
|
from extensions.ext_application_services import application_services
|
2026-10-22 02:11:12 +00:00
|
|
|
|
|
|
|
|
|
2026-11-02 12:16:49 +08:00
|
|
|
@shared_task
|
2026-10-22 02:11:12 +00:00
|
|
|
def export_application_trace(run_id: str) -> None:
|
2026-11-02 12:16:49 +08:00
|
|
|
application_services().tracing.agent_traces.deliver(run_id)
|
2026-10-22 02:11:12 +00:00
|
|
|
|
|
|
|
|
|
2026-11-02 12:16:49 +08:00
|
|
|
@shared_task
|
2026-10-22 02:11:12 +00:00
|
|
|
def reconcile_application_traces() -> None:
|
2026-11-02 12:16:49 +08:00
|
|
|
application_services().tracing.agent_traces.reconcile()
|