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

introspection: Introspect any channel by ID #756

Merged
merged 1 commit into from
Aug 23, 2019
Merged

Conversation

prashantv
Copy link
Contributor

Currently, the introspection endpoint only lets you (fully) introspect
the channel that received the request. This restricts introspection to
only work for channels that listen, but there are some services that
create multiple channels: 1 for listening, and then 1 per client.

Since the per-client channels may not be listening, we can only get
limited information on their state. Since we already have unique IDs
for each channel (and this is exposed via the includeOtherChannels),
provide a way to introspect a specific channel by ID.

This is backwards compatible -- if no ID is specified, the current
channel is introspected as it is today.

Currently, the introspection endpoint only lets you (fully) introspect
the channel that received the request. This restricts introspection to
only work for channels that listen, but there are some services that
create multiple channels: 1 for listening, and then 1 per client.

Since the per-client channels may not be listening, we can only get
limited information on their state. Since we already have unique IDs
for each channel (and this is exposed via the `includeOtherChannels`),
provide a way to introspect a specific channel by ID.

This is backwards compatible -- if no ID is specified, the current
channel is introspected as it is today.
@codecov
Copy link

codecov bot commented Aug 22, 2019

Codecov Report

Merging #756 into dev will increase coverage by 0.26%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #756      +/-   ##
==========================================
+ Coverage   88.21%   88.48%   +0.26%     
==========================================
  Files          40       40              
  Lines        4074     4090      +16     
==========================================
+ Hits         3594     3619      +25     
+ Misses        364      360       -4     
+ Partials      116      111       -5
Impacted Files Coverage Δ
all_channels.go 100% <100%> (ø) ⬆️
introspection.go 95.87% <100%> (+0.15%) ⬆️
mex.go 72.51% <0%> (-2.85%) ⬇️
peer.go 94.54% <0%> (+0.72%) ⬆️
channel.go 90% <0%> (+1.66%) ⬆️
outbound.go 91.22% <0%> (+4.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2818e4c...238033e. Read the comment docs.

@prashantv prashantv merged commit 418b17e into dev Aug 23, 2019
@prashantv prashantv deleted the introspect_other branch August 23, 2019 22:59
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.

2 participants