diff options
| author | luwenpeng <[email protected]> | 2024-04-22 10:35:33 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-04-29 17:42:43 +0800 |
| commit | 0d1731137309fdb0a6112a306578986e1bf57430 (patch) | |
| tree | 1446ed2f310000b878ceafbb8823de2385d3c0ef /common | |
| parent | a8313580e10bf83e9ee00ed32e7329b02d026163 (diff) | |
TSG-20743 Proxy输出命中filter报文的measurements
Diffstat (limited to 'common')
| -rw-r--r-- | common/include/tfe_dp_trace.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/common/include/tfe_dp_trace.h b/common/include/tfe_dp_trace.h index 4fc1836..aa24512 100644 --- a/common/include/tfe_dp_trace.h +++ b/common/include/tfe_dp_trace.h @@ -8,14 +8,15 @@ extern "C" #include <marsio.h> -#define DP_TRACE_INFO(mr_ins, mr_buff, module, fmt, ...) do{ \ - if (marsio_dp_trace_record_can_emit(mr_buff)) \ - { \ - marsio_dp_trace_record_emit_fmt(mr_ins, mr_buff, module, fmt, ##__VA_ARGS__); \ - } \ -}while(0) - - +#define DP_TRACE_INFO(mr_ins, mr_buff, module, fmt, ...) \ + do \ + { \ + if (marsio_dp_trace_measurements_can_emit(mr_ins, mr_buff)) \ + { \ + marsio_dp_trace_measurement_emit_fmt(mr_ins, mr_buff, DP_TRACE_MEASUREMENT_TYPE_TRACE, module, fmt, ##__VA_ARGS__); \ + marsio_dp_trace_measurement_emit_fmt(mr_ins, mr_buff, DP_TRACE_MEASUREMENT_TYPE_TELEMETRY, module, fmt, ##__VA_ARGS__); \ + } \ + } while (0) #ifdef __cpluscplus } |
