This diff introduces the idea of event trailers, which can be configured on the instance. A single instance can configure multiple event trailers, since users will likely need to ship the logs to multiple destinations - for example Datadog + our hosted product.
An event trailer, inspired by the run laucher, is as thin as possible and only implements a single method: handle_new_event.
event_trailers: - module: dagster_datadog.event_trailer class: DatadogEventTrailer config: api_key: "1235" app_key: "1234"
Here is a work in progress DatadogEventTrailer, which for now sends a HTTP post request to RequestBin instead of sending a request to Datadog. You can view the output here: https://requestbin.com/r/en2vcxlva94f9/1ZHOXfm21Smp5wMLEC2FQJNRujx