Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Fix error in opencensus to stackdriver translation (#474) (#475)
Browse files Browse the repository at this point in the history
- compressedSize -> compressedSizeBytes
  - uncompressedSize -> uncompressedSizeBytes
  • Loading branch information
jinmel authored and mayurkale22 committed Apr 5, 2019
1 parent 9632157 commit aa889b2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export function createTimeEvents(
messageEvent: {
id: String(messageEvent.id),
type: createMessageEventType(messageEvent.type),
uncompressedSize: String(messageEvent.uncompressedSize || 0),
compressedSize: String(messageEvent.compressedSize || 0)
uncompressedSizeBytes: String(messageEvent.uncompressedSize || 0),
compressedSizeBytes: String(messageEvent.compressedSize || 0)
}
})));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,30 @@ describe('Stackdriver CloudTrace Exporter Utils', () => {
}
},
{
messageEvent:
{compressedSize: '100', id: '1', type: 1, uncompressedSize: '12'},
messageEvent: {
compressedSizeBytes: '100',
id: '1',
type: 1,
uncompressedSizeBytes: '12'
},
time: '1970-01-02T10:17:36.789Z',
},
{
messageEvent:
{compressedSize: '0', id: '1', type: 2, uncompressedSize: '0'},
messageEvent: {
compressedSizeBytes: '0',
id: '1',
type: 2,
uncompressedSizeBytes: '0'
},
time: '1970-01-02T10:17:36.789Z',
},
{
messageEvent:
{compressedSize: '0', id: '1', type: 0, uncompressedSize: '0'},
messageEvent: {
compressedSizeBytes: '0',
id: '1',
type: 0,
uncompressedSizeBytes: '0'
},
time: '1970-01-02T10:17:36.789Z',
}
];
Expand Down

0 comments on commit aa889b2

Please sign in to comment.