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 <[email protected]>
  • Loading branch information
nabam committed Nov 28, 2019
1 parent 0c175e1 commit 85a1a97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 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,9 @@ 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 85a1a97

Please sign in to comment.