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

[v8] SSH request tracing #15478

Merged
merged 2 commits into from
Aug 12, 2022
Merged

Conversation

rosstimothy
Copy link
Contributor

Backports #14124 to branch/v8

Add tracing support for ssh global requests and  channels. Wrappers
for `ssh.Client`, `ssh.Channel`, and `ssh.NewChannel` provide a
mechanism for tracing context to be propagated via a `context.Context`.

In order to maintain backwards compatibility the ssh.Client wrapper
tries to open a TracingChannel when constructed. Any servers that
don't support tracing will reject the unknown channel. The client
will only provide tracing context to servers which do NOT reject
the TracingChannel request.

In order to include pass tracing context along all ssh payloads
are wrapped in an Envelope that includes the original payload
AND any tracing context. Servers now try to unmarshal all payloads
into said Envelope when processing messages. If there is an Envelope
provided, a new span will be created and the original payload will
be pass along to handlers.

Part of #12241
@rosstimothy rosstimothy marked this pull request as ready for review August 12, 2022 15:32
@github-actions github-actions bot requested review from gabrielcorado and zmb3 August 12, 2022 15:32
@rosstimothy rosstimothy enabled auto-merge (squash) August 12, 2022 15:44
@rosstimothy rosstimothy merged commit 6a38703 into branch/v8 Aug 12, 2022
@rosstimothy rosstimothy deleted the tross/backport-14124-branch/v8 branch August 15, 2022 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants