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

Added instrumentation for admin dashboard interface #245

Open
wants to merge 19 commits into
base: next
Choose a base branch
from

Conversation

segphault
Copy link

@segphault segphault commented Apr 14, 2016

This is a first pass at logging the relevant information for the Horizon admin dashboard (#154)


This change is Reviewable

@deontologician
Copy link
Contributor

Is this ready to be reviewed @segphault ?

@segphault
Copy link
Author

yep, this is ready for review and can be merged if it looks good to everybody.

The one part that I'm unsure about is the handle_open invocation that I added here as a hack to work around the fact that the socket.on("open", ...) event doesn't appear to be triggering (because the socket is already opened when Client is instantiated?). Somebody might want to come up with a better way to address that.

@@ -74,6 +74,7 @@ function Horizon({
horizon._horizonPath = path
horizon.authEndpoint = authEndpoint
horizon.hasAuthToken = tokenStorage.hasAuthToken.bind(tokenStorage)
horizon.send = sendRequest;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe name this something scarier like rawRequest

@dalanmiller
Copy link
Contributor

dalanmiller commented Apr 29, 2016

Everything works for me. Only thing is that .hzconfig needs to mv to .hz/config.toml.

As well, rather than being a separate Horizon is it going to move to some sort of --dashboard flag and with it enabled it would serve the dashboard automatically? Probably under localhost:8181/horizon/admin?

Also I think the log should be in descending order like the RethinkDB WebGUI.

screenshot 2016-04-29 13 10 29

@deontologician deontologician modified the milestones: Release 1.1, Release 1.0 May 18, 2016
@deontologician deontologician modified the milestones: Next Major Release, Release 1.x.x May 26, 2016
@deontologician deontologician modified the milestones: First post-2.0 release, Release 2.0 Jul 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants