8000 feat(emqx_trace): add JSON trace log entry formatter by kjellwinblad · Pull Request #12863 · emqx/emqx · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@kjellwinblad
Copy link
Contributor
@kjellwinblad kjellwinblad commented Apr 11, 2024

This PR makes it possible to select the JSON trace log entry formatter when crating a trace pattern. This will make it easier for the dashboard and automatic tests to parse the log entries.

Fixes: EMQX-12025 (partly)

Release version: v/e5.?

Summary

PR Checklist

Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:

  • Added tests for the changes
  • [] Added property-based tests for code which performs user input validation
  • [] Changed lines covered in coverage report
  • Change log has been added to changes/(ce|ee)/(feat|perf|fix|breaking)-<PR-id>.en.md files
  • For internal contributor: there is a jira ticket to track this change
  • [] Created PR to emqx-docs if documentation update is required, or link to a follow-up jira ticket
  • Schema changes are backward compatible

@kjellwinblad kjellwinblad marked this pull request as ready for review April 14, 2024 09:20
@kjellwinblad kjellwinblad requested review from a team and lafirest as code owners April 14, 2024 09:20
@kjellwinblad kjellwinblad requested a review from zmstone April 16, 2024 09:25
@kjellwinblad kjellwinblad force-pushed the kjell/new_trace_log_formatter/EMQX-12025 branch from 1188df9 to 10957e7 Compare April 18, 2024 08:39
@kjellwinblad kjellwinblad force-pushed the kjell/new_trace_log_formatter/EMQX-12025 branch from 53c142c to 3232ab5 Compare April 18, 2024 09:27
We wrap the reset of the process trace meta data in the after clause of
a try-after-end expression to be sure we never get any lingering
incorrect meta data.
@kjellwinblad kjellwinblad force-pushed the kjell/new_trace_log_formatter/EMQX-12025 branch from 67fbd9e to f5b0439 Compare April 18, 2024 12:25
This commit removes some redundant trace messages and renames some to
make it easier to interpret what is happening for the user.
@kjellwinblad
Copy link
Contributor Author
kjellwinblad commented Apr 18, 2024

I used this PR to introduce some improvements to the rule tracing:

@kjellwinblad kjellwinblad requested a review from zmstone April 19, 2024 07:50
zmstone
zmstone previously approved these changes Apr 19, 2024
This commit removes the internal extra field from the trace config
structure exposed to the user via the HTTP API.
@kjellwinblad kjellwinblad requested a review from zmstone April 19, 2024 15:38
@kjellwinblad kjellwinblad merged commit 6e99f01 into emqx:master Apr 22, 2024
@emqxqa
Copy link
emqxqa commented May 8, 2024

Test Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0