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

Embed UI config #107

Merged
merged 3 commits into from
Oct 27, 2017
Merged

Embed UI config #107

merged 3 commits into from
Oct 27, 2017

Conversation

tiffon
Copy link
Member

@tiffon tiffon commented Oct 27, 2017

Fix #85.

Instead of using /api/config to retrieve the UI config from the query service, the query service embeds it into index.html. The query service replaces DEFAULT_CONFIG with the actual config:

JAEGER_CONFIG = DEFAULT_CONFIG;

This resolves #85 because it allows the UI to use any GA tracking ID without needed to be rebuilt (e.g. the admin can use the all-in-one docker image and still enable Google Analytics).

- Merge embedded config with default config
- Use gaTrackingID from embedded config for Google Analytics tracking

Signed-off-by: Joe Farro <joef@uber.com>
Signed-off-by: Joe Farro <joef@uber.com>
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 69.91% when pulling d0dba99 on embed-ui-config into 4ece4e6 on master.

@yurishkuro
Copy link
Member

Needed for jaegertracing/jaeger#489

@yurishkuro yurishkuro deleted the embed-ui-config branch January 29, 2020 15:10
vvvprabhakar pushed a commit to vvvprabhakar/jaeger-ui that referenced this pull request Jul 5, 2021
* Query service embeds config in index.html

- Merge embedded config with default config
- Use gaTrackingID from embedded config for Google Analytics tracking

Signed-off-by: Joe Farro <joef@uber.com>

* Add changelog entry for PR 107

Signed-off-by: Joe Farro <joef@uber.com>

Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configure Google Analytics from the /api/config
3 participants