fix(greptime trace): remove async info as it is confusing

Fixes:
https://emqx.atlassian.net/browse/EMQX-12385
This commit is contained in:
Kjell Winblad 2024-05-16 16:50:09 +02:00
parent b7c2f4a6d7
commit 520e91c8fd
1 changed files with 2 additions and 2 deletions

View File

@ -422,7 +422,7 @@ is_auth_key(_) ->
%% ------------------------------------------------------------------------------------------------- %% -------------------------------------------------------------------------------------------------
%% Query %% Query
do_query(InstId, Channel, Client, Points) -> do_query(InstId, Channel, Client, Points) ->
emqx_trace:rendered_action_template(Channel, #{points => Points, is_async => false}), emqx_trace:rendered_action_template(Channel, #{points => Points}),
case greptimedb:write_batch(Client, Points) of case greptimedb:write_batch(Client, Points) of
{ok, #{response := {affected_rows, #{value := Rows}}}} -> {ok, #{response := {affected_rows, #{value := Rows}}}} ->
?SLOG(debug, #{ ?SLOG(debug, #{
@ -465,7 +465,7 @@ do_async_query(InstId, Channel, Client, Points, ReplyFunAndArgs) ->
connector => InstId, connector => InstId,
points => Points points => Points
}), }),
emqx_trace:rendered_action_template(Channel, #{points => Points, is_async => true}), emqx_trace:rendered_action_template(Channel, #{points => Points}),
WrappedReplyFunAndArgs = {fun ?MODULE:reply_callback/2, [ReplyFunAndArgs]}, WrappedReplyFunAndArgs = {fun ?MODULE:reply_callback/2, [ReplyFunAndArgs]},
ok = greptimedb:async_write_batch(Client, Points, WrappedReplyFunAndArgs). ok = greptimedb:async_write_batch(Client, Points, WrappedReplyFunAndArgs).