Skip to content

Allow metadata in Tunnel messages #697

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cheukt
Copy link
Member

@cheukt cheukt commented May 29, 2025

will allow for sending metadata over the wire (things like sent time or debug flags), which will be super helpful in improving/debugging performance

but also open to adding the necessary fields directly (e.g. session_id, timestamp, debug). just thought doing it as a map is a bit easier and allows us to iterate quickly.

can't use grpc metadata for timestamp, since that is sent only once per streaming call.

@cheukt cheukt requested review from ale7714 and benjirewis May 29, 2025 18:01
@github-actions github-actions bot added the safe to test committer is a member of this org label May 29, 2025
Copy link
Member

@ale7714 ale7714 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@benjirewis benjirewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM, but sounds like we should gather more tunnel statistics with custom viam-servers and CLIs before merging this API? I think this will be good for the eventual prod version of collecting tunnel statistics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test committer is a member of this org
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants