From 16b4a629426bcbd14db9468608e9d6132283efd7 Mon Sep 17 00:00:00 2001 From: fengweihao Date: Mon, 15 Nov 2021 18:46:52 +0800 Subject: [PATCH] =?UTF-8?q?TSG-8451=20common=5Fstream=5Ftrace=5Fid?= =?UTF-8?q?=E5=B7=B2=E8=B6=85=E8=BF=87long=E5=9E=8B=EF=BC=8C=E5=90=8C?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E7=AD=96=E7=95=A5=E4=BF=AE=E6=94=B9trace=5Fi?= =?UTF-8?q?d=E4=B8=BA=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/business/doh/src/logger.cpp | 2 +- plugin/business/pangu-http/src/pangu_logger.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/business/doh/src/logger.cpp b/plugin/business/doh/src/logger.cpp index 53ff201..d54edf8 100644 --- a/plugin/business/doh/src/logger.cpp +++ b/plugin/business/doh/src/logger.cpp @@ -341,7 +341,7 @@ int doh_send_log(struct doh_conf *handle, const struct tfe_http_session *http, c int ret = tfe_cmsg_get_value(cmsg, TFE_CMSG_STREAM_TRACE_ID, (unsigned char *)opt_val, sizeof(opt_val), &opt_out_size); if (ret == 0) { - cJSON_AddNumberToObject(common_obj, "common_stream_trace_id", atoll(opt_val)); + cJSON_AddStringToObject(common_obj, "common_stream_trace_id", opt_val); } ret = tfe_cmsg_get_value(cmsg, TFE_CMSG_COMMON_DIRECTION, (unsigned char *)&common_direction, sizeof(common_direction), &opt_out_size); if (ret==0) diff --git a/plugin/business/pangu-http/src/pangu_logger.cpp b/plugin/business/pangu-http/src/pangu_logger.cpp index 33301a4..4b502aa 100644 --- a/plugin/business/pangu-http/src/pangu_logger.cpp +++ b/plugin/business/pangu-http/src/pangu_logger.cpp @@ -160,7 +160,7 @@ int pangu_send_log(struct pangu_logger* handle, const struct pangu_log* log_msg) int ret=tfe_cmsg_get_value(cmsg, TFE_CMSG_STREAM_TRACE_ID, (unsigned char *) opt_val, sizeof(opt_val), &opt_out_size); if (ret==0) { - cJSON_AddNumberToObject(common_obj, "common_stream_trace_id", atoll(opt_val)); + cJSON_AddStringToObject(common_obj, "common_stream_trace_id", opt_val); } ret = tfe_cmsg_get_value(cmsg, TFE_CMSG_COMMON_DIRECTION, (unsigned char *)&common_direction, sizeof(common_direction), &opt_out_size); if (ret==0)