feat: add stop after render and after render trace to kinesis action
This commit is contained in:
parent
beedc72be4
commit
279ad186f7
|
@ -261,6 +261,11 @@ do_send_requests_sync(
|
||||||
stream_name := StreamName
|
stream_name := StreamName
|
||||||
} = maps:get(ChannelId, InstalledChannels),
|
} = maps:get(ChannelId, InstalledChannels),
|
||||||
Records = render_records(Requests, Templates),
|
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(
|
Result = ecpool:pick_and_do(
|
||||||
PoolName,
|
PoolName,
|
||||||
{emqx_bridge_kinesis_connector_client, query, [Records, StreamName]},
|
{emqx_bridge_kinesis_connector_client, query, [Records, StreamName]},
|
||||||
|
|
Loading…
Reference in New Issue