Skip to content

Commit

Permalink
Merge branch 'master' into trace-diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffon committed Jul 31, 2018
2 parents db6e33f + 0188418 commit 96774b9
Show file tree
Hide file tree
Showing 7 changed files with 550 additions and 506 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

Visualize distributed tracing with Jaeger.

| Trace Search | Trace Details |
| :------------------------------------: | :------------------------------------: |
| ![Trace Search](./media/ss_search.png) | ![Trace Details](./media/ss_trace.png) |

## Contributing

See [CONTRIBUTING](./CONTRIBUTING.md).
Expand Down Expand Up @@ -46,17 +50,17 @@ ssh -fN -L 16686:$BACKEND_HOST:$BACKEND_PORT $BACKEND_PORT
Start the development server with hot loading:

```
cd packages/jaeger-ui && yarn start
yarn start
```

#### Commands

| Command | Description |
| ------------------------------------- | ------------------------------------------------------------------- |
| `cd packages/jaeger-ui && yarn start` | Starts development server with hot reloading and api proxy. |
| `yarn test` | Run all the tests |
| `yarn lint` | Lint the project (eslint, prettier, flow) |
| `yarn build` | Runs production build. Outputs files to `packages/jaeger-ui/build`. |
| Command | Description |
| ------------ | ------------------------------------------------------------------- |
| `yarn start` | Starts development server with hot reloading and api proxy. |
| `yarn test` | Run all the tests |
| `yarn lint` | Lint the project (eslint, prettier, flow) |
| `yarn build` | Runs production build. Outputs files to `packages/jaeger-ui/build`. |

## Build

Expand Down
Binary file added media/ss_search.png
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 media/ss_trace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"precommit": "lint-staged",
"prettier":
"prettier --write '{.,scripts}/*.{js,json,md}' 'packages/*/{src,demo/src}/**/*.{css,js,json,md}' 'packages/*/*.{css,js,json,md}'",
"test": "lerna run test"
"test": "lerna run test",
"start": "cd packages/jaeger-ui && yarn start"
},
"prettier": {
"printWidth": 110,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ export function collapseOne(state, { payload }) {
const childrenHiddenIDs = spans.reduce((res, curSpan) => {
if (nearestCollapsedAncestor && curSpan.depth <= nearestCollapsedAncestor.depth) {
res.add(nearestCollapsedAncestor.spanID);
nearestCollapsedAncestor = curSpan;
if (curSpan.hasChildren) {
nearestCollapsedAncestor = curSpan;
}
} else if (curSpan.hasChildren && !res.has(curSpan.spanID)) {
nearestCollapsedAncestor = curSpan;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,14 @@ describe('TraceTimelineViewer/duck', () => {
// --- 2
// - 3
// --- 4
// - 5
const spans = [
{ spanID: 0, depth: 0, hasChildren: true },
{ spanID: 1, depth: 1, hasChildren: true },
{ spanID: 2, depth: 2, hasChildren: false },
{ spanID: 3, depth: 1, hasChildren: true },
{ spanID: 4, depth: 2, hasChildren: false },
{ spanID: 5, depth: 1, hasChildren: false },
];

const oneSpanCollapsed = new Set([1]);
Expand Down
1,029 changes: 532 additions & 497 deletions packages/jaeger-ui/src/img/jaeger-logo.svg
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 96774b9

Please sign in to comment.