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

Add a client debugging initializer and PCAP debugging example #908

Merged
merged 2 commits into from
Jul 24, 2020

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Jul 24, 2020

Motivation:

Sometimes it's useful to have access to the channel so that additional
handlers can be added for debugging. This currently isn't possible for
the client.

Modifications:

  • Add a debugChannelInitializer to the client configuration and
    builder.
  • Add an example using the NIOExtras PCAP handler. Note: it's
    out-of-source so we don't have to directly depend on NIOExtras.

Result:

  • Users can get .pcaps from their clients

@glbrntt glbrntt added the 🆕 semver/minor Adds new public API. label Jul 24, 2020
@glbrntt glbrntt requested a review from Lukasa July 24, 2020 10:03
Motivation:

Sometimes it's useful to have access to the channel so that additional
handlers can be added for debugging. This currently isn't possible for
the client.

Modifications:

- Add a `debugChannelInitializer` to the client configuration and
  builder.
- Add an example using the NIOExtras PCAP handler. Note: it's
  out-of-source so we don't have to directly depend on NIOExtras.

Result:

- Users can get .pcaps from their clients
@glbrntt glbrntt merged commit 5397772 into grpc:master Jul 24, 2020
@glbrntt glbrntt deleted the gb-debug-init branch July 24, 2020 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants