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

commands diagnostics #2277

Merged
merged 5 commits into from
Feb 2, 2016
Merged

commands diagnostics #2277

merged 5 commits into from
Feb 2, 2016

Conversation

whyrusleeping
Copy link
Member

This lets us see running commands and some basic info about them.

The next PR on this front will allow us to cancel requests by killing their contexts.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
@ghost
Copy link

ghost commented Feb 2, 2016

LGTM! 👍

Two nice-to-haves:

  • also log api calls through :8080/api - on first look at core/corehttp/commands.go it should just work, no idea why it doesn
  • ordering the options column
    • i got e.g. [v=true,encoding=json,stream-channels=true,] and [encoding=json,stream-channels=true,v=true,] for the same calls

@whyrusleeping
Copy link
Member Author

@lgierth hrm... calls through :8080/api have a different commands context, which is why they don't show up. we would need to add this command to the readonly api for us to see those requests (which might not be a bad idea)

@ghost
Copy link

ghost commented Feb 2, 2016

Oh I understand -- it would be useful because we're exposing https://ipfs.io/io for public use, and I could even imagine legitimate use cases for echo /dns/ipfs.io/ip4/tcp/80 > $IPFS_PATH/api

@ghost
Copy link

ghost commented Feb 2, 2016

That links should have been https://ipfs.io/api of course

@ghost
Copy link

ghost commented Feb 2, 2016

I could even imagine legitimate use cases for echo /dns/ipfs.io/ip4/tcp/80 > $IPFS_PATH/api

In fact I just came up with one: in order for gx in a container to use an ipfs daemon running on the host, I'm doing echo /ip4/172.17.0.1/tcp/8080 > $IPFS_PATH/api in the container.

:')

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
@whyrusleeping
Copy link
Member Author

cool, i'll get @lgierth's other 'nice to have' in another PR

whyrusleeping added a commit that referenced this pull request Feb 2, 2016
@whyrusleeping whyrusleeping merged commit f5e7a3b into master Feb 2, 2016
@whyrusleeping whyrusleeping deleted the feat/active-cmds branch February 2, 2016 16:09
@ghost ghost mentioned this pull request Feb 8, 2016
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