Jaeger UI configuration problems

441 views
Skip to first unread message

Eugene Prokopiev

unread,
Mar 29, 2021, 3:28:40 AM3/29/21
to Jaeger Tracing

Hi,

I tried to use custom UI configuration as described in https://www.jaegertracing.io/docs/1.7/deployment/#ui-configuration, but see strange results while using configuration example from url:

$ docker run --rm -it --name jaeger -p 16686:16686 -p 14250:14250 -v $(pwd)/ui.js:/ui.js jaegertracing/all-in-one --query.ui-config /ui.js
...
{"level":"panic","ts":1617002725.093364,"caller":"app/static_handler.go:58","msg":"Could not create static assets handler","error":"UI config file must define function UIConfig(): /ui.js","stacktrace":"github.com/jaegertracing/jaeger/cmd/query/app.RegisterStaticHandler\n\tgithub.com/jaegertracing/jaeger/cmd/query/app/static_handler.go:58\ngithub.com/jaegertracing/jaeger/cmd/query/app.createHTTPServer\n\tgithub.com/jaegertracing/jaeger/cmd/query/app/server.go:133\ngithub.com/jaegertracing/jaeger/cmd/query/app.NewServer\n\tgithub.com/jaegertracing/jaeger/cmd/query/app/server.go:75\nmain.startQuery\n\tcommand-line-arguments/main.go:237\nmain.main.func1\n\tcommand-line-arguments/main.go:158\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/co...@v0.0.7/command.go:838\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/co...@v0.0.7/command.go:943\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/co...@v0.0.7/command.go:883\nmain.main\n\tcommand-line-arguments/main.go:201\nruntime.main\n\truntime/proc.go:225"}
panic: Could not create static assets handler

function UIConfig() is not mentioned in docs above, so maybe docs is outdated or I'm doing something wrong?

Eugene Prokopiev

unread,
Mar 29, 2021, 3:37:16 AM3/29/21
to Jaeger Tracing
Found in https://github.com/jaegertracing/jaeger-ui/issues/123 that docs are really outdated, because new js config format is not described, so I need to rename config file ui.js => ui.json to use legacy json config format

понедельник, 29 марта 2021 г. в 10:28:40 UTC+3, Eugene Prokopiev:
Reply all
Reply to author
Forward
0 new messages