Jake
03/26/2024, 7:33 PMRyan Peden
03/27/2024, 11:48 PMJake
03/28/2024, 3:11 PMRyan Peden
03/28/2024, 5:09 PMddtrace
and override the run command the worker sends to the container.
I think the default is python -m prefect.engine
, so you'd need to change it to ddtrace-run python -m prefect.engine
You can also run the Datadog agent in its own container, as long as it's running somewhere that your flow container can access it over the network. In that case you'll need to set the DD_AGENT_HOST environment variable in the flow container to tell it where to send the traces.
I found the Datadog agent quick enough to start up that it was easier to just run it in the flow container, but if you have very short flows or a large volume of flows, a separate agent is probably the best choice.Ryan Peden
03/28/2024, 5:21 PMJake
03/28/2024, 6:51 PM