Skip to content

a8n: Add tracing to previewCampaignPlan and createCampaign mutations

Created by: mrnugget

Right now we don't use any tracing and don't record any metrics in these two mutations.

CreateCampaign calls a8n.Service.CreateCampaign and a8n.Service.RunChangesetJobs. It talks to the PostgreSQL database, gitserver, and external services. All of these interactions should be traced and recorded.

PreviewCampaignPlan calls the run.Runner.Run method, which kicks off CampaignJobs which talk to the replacer service. These interactions should be traced and recorded.

Both kick off long running processes (a8n.Service.CreateCampaign