Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(emqx_trace): add JSON trace log entry formatter #12863

Merged

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 lafirest and a team as code owners April 14, 2024 09:20
@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:

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 merged commit 6e99f01 into emqx:master Apr 22, 2024
173 checks passed
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.

None yet

2 participants