Open zsy619 opened 1 year ago
@zsy619 Did you find the problem?
I'm sorry I don't know the beego library. However the examples directory shows how to configure statsviz with many other libraries/frameworks.
Maybe there's one that is similar to beego?
web.Any(defaultStatsvizPrefix+":path([\\w]+)", func(ctx *context.Context) { statsviz.Index.ServeHTTP(ctx.ResponseWriter, ctx.Request) })
defaultStatsvizPrefix+":path([\\w]+)"
It looks like it doesn't match the multi-level path, maybe it can be changed to defaultStatsvizPrefix+"*"
I don't know beego myself, some examples have been added by the community. If you know how to fix that please don't hesitate to open a PR
I don't know beego myself, some examples have been added by the community. If you know how to fix that please don't hesitate to open a PR
It seems to be a problem with his usage
web.Any(defaultStatsvizPrefix+":path([\\w]+)", func(ctx *context.Context) { statsviz.Index.ServeHTTP(ctx.ResponseWriter, ctx.Request) })
defaultStatsvizPrefix+":path([\\w]+)"
It looks like it doesn't match the multi-level path, maybe it can be changed todefaultStatsvizPrefix+"*"
@zsy619 did that solve the issue? It's more than one year old so I'll soon close it
代码如下:
错误提示: