Skip to content

Commit

Permalink
Add UI docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aljesusg committed Dec 4, 2018
1 parent 6dccdc4 commit 4578c3a
Show file tree
Hide file tree
Showing 9 changed files with 108 additions and 0 deletions.
108 changes: 108 additions & 0 deletions content/docs/next-release/interface.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
---
title: Interface
weight: 10
---

Jaeger Web UI is implemented in Javascript using popular open source frameworks like React. Several performance improvements have been released in v1.0 to allow the UI to efficiently deal with large volumes of data, and to display traces with tens of thousands of spans (e.g. we tried a trace with 80,000 spans).

## Embed Mode

Enhancement to embed mode in Jaeger UI for some components allowing us to integrate it into other applications.
For use this feature we need to pass in the query params the param **uiEmbed** with the value **vN**, where **N** represents the version.


### Embedded Components

* Search Trace Page
* Trace Page

#### Search Trace Page

To integrate the Search Trace Page to our application we have to indicate to the Jaeger UI that we want to use the embed mode with `uiEmbed=v0`.

For example:

```sh
<JAEGER UI URL>/search?
end=1543921359557000&
limit=20&lookback=1h&
maxDuration&
minDuration&
service=jaeger-query&
start=1543917759557000&
uiEmbed=v0
```

![Embed Search Traces](/img/interface/embed-search-traces.png)

We have a button in this kind of view that redirect us to the search traces page in the Jaeger Site <img src="/img/interface/embed-open-icon.png" style="width: 20px; height:20px; display:inline;" alt="Embed open window">.

##### Optionally

We can use an extra options in the embed mode :

* uiSearchHideGraph=1 `Hide the ScatterPlot Graph of Search Traces`

```sh
<JAEGER UI URL>/search?
end=1543921359557000&
limit=20&lookback=1h&
maxDuration&
minDuration&
service=jaeger-query&
start=1543917759557000&
uiEmbed=v0&
uiSearchHideGraph=1s
```

![Embed Search Traces without Graph](/img/interface/embed-search-traces-hide-graph.png)

#### Trace Page


To integrate the Trace Page to our application we have to indicate to the Jaeger UI that we want to use the embed mode with `uiEmbed=v0`.

For example:

```sh
<JAEGER UI URL>/trace/<TRACE ID>?
uiEmbed=v0
```
![Embed Trace view](/img/interface/embed-trace-view.png)

If we have navigated to this view from the search traces page we'll have a button to go back to the results page.

![Embed Trace view](/img/interface/embed-trace-view-with-back-button.png)

We have a new button in this kind of view that redirect us to the trace page in the Jaeger Site <img src="/img/interface/embed-open-icon.png" style="width: 20px; height:20px; display:inline;" alt="Embed open window">.

##### Optionally

We can use an extra options in the embed mode :

* uiTimelineShowMap = 1 `Show the mini map of the trace`
```sh
<JAEGER UI URL>/trace/<TRACE ID>?
uiEmbed=v0&
uiTimelineShowMap=1
```
![Embed Trace view](/img/interface/embed-trace-view-with-minimap.png)

* uiTimelineShowDetails = 1 `Show the details of the trace`

```sh
<JAEGER UI URL>/trace/<TRACE ID>?
uiEmbed=v0&
uiTimelineShowDetails=1
```
![Embed Trace view](/img/interface/embed-trace-view-with-details.png)


We can also combine the options
```sh
<JAEGER UI URL>/trace/<TRACE ID>?
uiEmbed=v0&
uiTimelineShowDetails=1&
uiTimelineShowMap=1
```
![Embed Trace view](/img/interface/embed-trace-view-with-details-and-minimap.png)
Binary file added static/img/interface/embed-open-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/interface/embed-search-traces.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/interface/embed-trace-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4578c3a

Please sign in to comment.