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

chore(rumqttd): Make tracing events human-readable #503

Merged
merged 3 commits into from Nov 19, 2022
Merged

Conversation

mnpw
Copy link
Member

@mnpw mnpw commented Nov 17, 2022

Enhance tracing in rumqttd

  • Re-organize spans basis of importance of context information they carry. The span tree has three levels. Level 0 has coarse, high-level information. Level 2 has fine, low-level information. The tree looks like:
    |- incoming (level 0)
    |    |- incoming_connect (level 1)
    |    |- incoming_payload
    |    |    |- publish (level 2)
    |    |    |- subscribe
    |    |    |- ...
    |    |- incoming_disconnect
    |- outgoing (level 0)
    |    |- outgoing_ack (level 1)
    |    |- outgoing_publish

- Re-organize spans basis of importance of context information they carry.
  The span tree has three levels. Level 0 has coarse, high-level information.
  Level 2 has fine, low-level information. The tree looks like:
    |- incoming (level 0)
    |    |- incoming_connect (level 1)
    |    |- incoming_payload
    |    |    |- publish (level 2)
    |    |    |- subscribe
    |    |    |- ...
    |    |- incoming_disconnect
    |- outgoing (level 0)
    |    |- outgoing_ack (level 1)
    |    |- outgoing_publish

- Refactor `routing::forward_device_data()`

- Make tracing events more human-readable

- Remove fields from tracing events that are present in enclosing tracing
spans
@mnpw mnpw changed the title chore(rumqttd): add more tracing, make tracing events human-readable chore(rumqttd): Make tracing events human-readable Nov 19, 2022
@mnpw mnpw merged commit 30c1c79 into main Nov 19, 2022
@h3nill h3nill deleted the tracing-additions branch January 12, 2023 13:25
carlocorradini pushed a commit to carlocorradini/rumqtt that referenced this pull request Aug 3, 2023
* chore(rumqttd): add more tracing, make tracing events human-readable

- Re-organize spans basis of importance of context information they carry.
  The span tree has three levels. Level 0 has coarse, high-level information.
  Level 2 has fine, low-level information. The tree looks like:
    |- incoming (level 0)
    |    |- incoming_connect (level 1)
    |    |- incoming_payload
    |    |    |- publish (level 2)
    |    |    |- subscribe
    |    |    |- ...
    |    |- incoming_disconnect
    |- outgoing (level 0)
    |    |- outgoing_ack (level 1)
    |    |- outgoing_publish

- Refactor `routing::forward_device_data()`

- Make tracing events more human-readable

- Remove fields from tracing events that are present in enclosing tracing
spans

* Update tracing event messages

* Update changelog
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

1 participant