feat: add stop after render and after render trace to kinesis action

This commit is contained in:
Kjell Winblad 2024-04-24 13:55:43 +02:00
parent beedc72be4
commit 279ad186f7
1 changed files with 5 additions and 0 deletions

View File

@ -261,6 +261,11 @@ do_send_requests_sync(
stream_name := StreamName
} = maps:get(ChannelId, InstalledChannels),
Records = render_records(Requests, Templates),
StructuredRecords = [
#{data => Data, partition_key => PartitionKey}
|| {Data, PartitionKey} <- Records
],
emqx_trace:rendered_action_template(ChannelId, StructuredRecords),
Result = ecpool:pick_and_do(
PoolName,
{emqx_bridge_kinesis_connector_client, query, [Records, StreamName]},