Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

zpages: prefix as explained in example_test.go doesn't work #559

Closed
ukai opened this issue Mar 12, 2018 · 2 comments
Closed

zpages: prefix as explained in example_test.go doesn't work #559

ukai opened this issue Mar 12, 2018 · 2 comments
Assignees

Comments

@ukai
Copy link

ukai commented Mar 12, 2018

example test says

// Both /debug/tracez and /debug/rpcz will be served.
http.Handle("/debug/", http.StripPrefix("/debug", zpages.Handler))

but /debug/tracez pages has link to /tracez, not /debug/tracez

@odeke-em
Copy link
Member

odeke-em commented Mar 13, 2018

@ukai thank you for reporting this.

However, I am a little confused, what part isn't working?

I ask because:
/tracez -- will give a 404
screen shot 2018-03-13 at 12 08 59 pm

/rpcz -- will give a 404
screen shot 2018-03-13 at 12 09 07 pm

/debug/tracez -- will serve the content of /tracez
screen shot 2018-03-13 at 12 09 18 pm

/debug/rpcz -- will serve the content of /rpcz
screen shot 2018-03-13 at 12 09 29 pm

Also what version of Go are you using?

@ukai
Copy link
Author

ukai commented Mar 14, 2018

/debug/tracez shows contents of /tracez. its content (if it got some data) contains links to /tracez?.... (404), which should be links to /debug/tracez?....

semistrict pushed a commit to semistrict/opencensus-go that referenced this issue Mar 15, 2018
semistrict pushed a commit to semistrict/opencensus-go that referenced this issue Mar 15, 2018
semistrict pushed a commit to semistrict/opencensus-go that referenced this issue Mar 15, 2018
semistrict pushed a commit to semistrict/opencensus-go that referenced this issue Mar 15, 2018
semistrict pushed a commit to semistrict/opencensus-go that referenced this issue Mar 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants