Skip to content

Commit

Permalink
trace-viewer to .tsx
Browse files Browse the repository at this point in the history
* File extension changed to .tsx
* Path to changed file removed from tsconfig.lint.json
* Added type for spans argument in getTraceName()

Signed-off-by: Valerii Varankin <vkvarankin@gmail.com>
  • Loading branch information
swapster committed Mar 9, 2020
1 parent 612df23 commit 79a7e39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import { Span } from '../types/trace';

// eslint-disable-next-line import/prefer-default-export
export function getTraceName(spans) {
export function getTraceName(spans: Span[]) {
const allSpanIDs = spans.map(sp => sp.spanID);
const rootSpan = spans
.filter(sp => {
Expand Down
1 change: 0 additions & 1 deletion packages/jaeger-ui/tsconfig.lint.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"src/api/jaeger.js",
"src/components/SearchTracePage/SearchResults/ResultItem.markers.js",
"src/model/order-by.js",
"src/model/trace-viewer.js",
"src/selectors/process.js",
"src/selectors/span.js",
"src/selectors/trace.js",
Expand Down

0 comments on commit 79a7e39

Please sign in to comment.