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

Json tracing updates and fixes (enable in all clusters, fix lists and large payloads) #28022

Merged
merged 17 commits into from
Jul 19, 2023

Conversation

andy31415
Copy link
Contributor

  • Enables full tracing for all-clusters-app as it is a very common test app
  • Increases size for hex buffer to 4096 as we have found messages that are very large to potentially need encoding
  • Fix duplicate key bug in json tracing (all keys in a list are "[]" and this meant at least for lists, json tracing was losing data)

@andy31415 andy31415 changed the title JSon tracing updates and fixes Json tracing updates and fixes (enable in all clusters, fix lists and large payloads) Jul 18, 2023
src/tracing/json/json_tracing.cpp Outdated Show resolved Hide resolved
src/tracing/json/json_tracing.cpp Outdated Show resolved Hide resolved
src/tracing/json/json_tracing.cpp Outdated Show resolved Hide resolved
src/tracing/json/json_tracing.cpp Outdated Show resolved Hide resolved
@github-actions github-actions bot added the lib label Jul 18, 2023
andreilitvin and others added 2 commits July 18, 2023 14:18
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
@woody-apple woody-apple merged commit 1883599 into project-chip:master Jul 19, 2023
46 of 48 checks passed
erwinpan1 pushed a commit to erwinpan1/connectedhomeip that referenced this pull request Jul 21, 2023
… large payloads) (project-chip#28022)

* Fix json tracing

* Increase the buffer size for json tracing as well

* Full json trace decoding for all clusters app on linux

* Better formatting of lists - make indices make sense

* Restyle

* Updated comments based on code review

* Restyled by whitespace

* Add error logging when exit container fails

* Fix typo

* Update src/tracing/json/json_tracing.cpp

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>

* rename [] to Anonymous<> for lists

* Rename exit to end for containers

* Use a `@` format instead of -

* One more anonymous update

* Fix unit tests

---------

Co-authored-by: Andrei Litvin <andreilitvin@google.com>
Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants