Skip to content

Commit

Permalink
sort span tags in alphabetical order
Browse files Browse the repository at this point in the history
Signed-off-by: Lev Popov <leo@nabam.net>
  • Loading branch information
nabam committed Nov 28, 2019
1 parent 0c175e1 commit 179f449
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/jaeger-ui/src/model/transform-trace-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export default function transformTraceData(data: TraceData & { spans: SpanData[]
span.tags = span.tags || [];
span.references = span.references || [];
const tagsInfo = deduplicateTags(span.tags);
tagsInfo.tags.sort((a, b) => { return a.key.localeCompare(b.key) })
span.tags = tagsInfo.tags;
span.warnings = span.warnings.concat(tagsInfo.warnings);
span.references.forEach(ref => {
Expand Down

0 comments on commit 179f449

Please sign in to comment.