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(zenoh-flow-nodes): expose node's node id in Context #253

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

J-Loudet
Copy link
Contributor

@J-Loudet J-Loudet commented Jun 4, 2024

This allows providing more accurate information in, for instance, logging. The same node could be instantiated several times, being able to add the NodeId to the logging information helps differentiating them.

  • zenoh-flow-nodes/src/context.rs: add a field keeping track of the node id and a corresponding getter method.
  • zenoh-flow-runtime/src/runtime/load.rs: add the operator, sink and source id when creating the Context.

This allows providing more accurate information in, for instance,
logging. The same node could be instantiated several times, being able
to add the `NodeId` to the logging information helps differentiating
them.

* zenoh-flow-nodes/src/context.rs: add a field keeping track of the
  node id and a corresponding getter method.
* zenoh-flow-runtime/src/runtime/load.rs: add the operator, sink and
  source id when creating the Context.

Signed-off-by: Julien Loudet <[email protected]>
@J-Loudet J-Loudet merged commit cebf975 into main Jun 4, 2024
9 checks passed
@J-Loudet J-Loudet deleted the feat/context-node-id branch June 4, 2024 19:56
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