Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Commit

Permalink
Fix ServerAddr UInt8Array to Buffer for thrift (openzipkin#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
rooftopsparrow authored and adriancole committed Apr 11, 2017
1 parent 518bf0d commit 7f032e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/zipkin-transport-scribe/test/integrationTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ describe('Scribe transport - integration test', () => {
flags: 0
});
tracer.setId(id);
tracer.recordAnnotation(new Annotation.ServerAddr({serviceName: 'test'}));
tracer.recordAnnotation(new Annotation.ClientSend());
tracer.recordAnnotation(new Annotation.ClientRecv());
setTimeout(() => {
Expand Down
3 changes: 1 addition & 2 deletions packages/zipkin/src/internalRepresentations.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ function Address({key, endpoint}) {
this.endpoint = endpoint;
}
Address.prototype.toThrift = function toThrift() {
const value = new Uint8Array(1);
value[0] = 1;
const value = Buffer.from([1]);
const res = new thriftTypes.BinaryAnnotation({
key: this.key,
value,
Expand Down

0 comments on commit 7f032e1

Please sign in to comment.