Skip to content

Commit

Permalink
Transform 'operationName' to 'operationNames' in queryBasicTraces Query
Browse files Browse the repository at this point in the history
  • Loading branch information
hanahmily committed Jun 27, 2018
1 parent 72c76be commit 9d263b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mock/trace.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default {
queryBasicTraces: {
'traces|20': [{
key: '@id',
'operationName|1-2': ['@word(100)'],
'operationNames|1-2': ['@word(100)'],
duration: '@natural(100, 5000)',
start: function() { // eslint-disable-line
offset = offset + 3600000; // eslint-disable-line
Expand Down
2 changes: 1 addition & 1 deletion src/components/Trace/TraceList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class TraceList extends PureComponent {
style={{ backgroundColor: item.isError ? '#fde3cf' : '#1890ff', color: item.isError ? '#f56a00' : null, verticalAlign: 'middle' }}
icon={item.isError ? 'close' : 'check'}
/>}
title={this.renderOperationName(item.operationName, item.duration,
title={this.renderOperationName(item.operationNames, item.duration,
item.isError, maxDuration)}
description={this.renderDescription(item.start, item.traceIds)}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/models/trace.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const dataQuery = `
queryBasicTraces(condition: $condition) {
traces {
key: segmentId
operationName
operationNames
duration
start
isError
Expand Down

0 comments on commit 9d263b7

Please sign in to comment.