-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Query service: /api/config returning index.html #489
Comments
Let's make a change in the UI project first that ensures that the generated index.html contains
Then we can add code to the query service to assign a different value to JAEGER_CONFIG when serving index.html |
Sounds good, will post back when it's merged. |
UI change: jaegertracing/jaeger-ui#107 |
All done & tested, keeping this open until we add docs on how to use it. |
https://github.com/jaegertracing/jaeger-ui could list all configurable options. |
@pavolloffay elaborate? Like a help page? |
or you mean the README? +1 then |
just the readme for now |
I think we have one outstanding issue (jaegertracing/jaeger-ui#123) before we can document (although the current solution already works, so we could just document it as is - jaegertracing/jaeger-ui#124). Since there are tickets in the UI repo now, I am going to close this one. |
Description
The query-service is returning the body of
index.html
when the UI requests/api/config
.This is causing errors in the browser, but fortunately they are not interrupting the UI experience.
The ideal scenario is the config is dumped into the body of
index.html
when it is served. This will allow us to remove the HTTP call to/api/config
entirely.Per a previous discussion, the
index.html
can contain the following, which I believe can be replaced with a JSON serialization of the config:Where
DEFAULT_CONFIG
is replaced with the UI config contents.The UI config contents are
{}
by default, and can be overridden via a envar or cmd line parameter (maybequery.ui-config
?) that conveys a filepath with a YAML or JSON file.Steps to reproduce the issue:
Describe the results you received:
/api/config
returns theindex.html
content.Describe the results you expected:
Either
/api/config
returns theindex.html
content or we switch to dumping the config into the body of the HTML.The text was updated successfully, but these errors were encountered: