relay
relay copied to clipboard
Emit outcomes in Kafka delivery callback
- For any data type that the
delivery()callback in the Kafka producer gets an error for, we should create an outcome. This requires being able to map the topic string to a data type, and derive the outcomequantityfrom the message somehow. - For spans, we emit
Acceptedoutcomes before we produce to Kafka, but producing to Kafka might still fail asynchronously. We should instead emit the outcome from the success branch of the delivery callback (see https://github.com/getsentry/relay/pull/3315#discussion_r1537484263).
Still need to check it that's possible.