Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mwear committed Jun 9, 2020
1 parent 38059cb commit 7ebeec1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/opentelemetry-exporter-jaeger/test/jaeger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ describe('JaegerExporter', () => {
events: [],
duration: [32, 800000000],
resource: Resource.empty(),
instrumentationLibrary: {
name: 'default',
version: '0.0.1',
},
};

exporter.export([readableSpan], (result: ExportResult) => {
Expand Down
16 changes: 16 additions & 0 deletions packages/opentelemetry-exporter-jaeger/test/transform.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ describe('transform', () => {
version: 1,
cost: 112.12,
}),
instrumentationLibrary: {
name: 'default',
version: '0.0.1',
},
};

const thriftSpan = spanToThrift(readableSpan);
Expand Down Expand Up @@ -169,6 +173,10 @@ describe('transform', () => {
events: [],
duration: [32, 800000000],
resource: Resource.empty(),
instrumentationLibrary: {
name: 'default',
version: '0.0.1',
},
};

const thriftSpan = spanToThrift(readableSpan);
Expand Down Expand Up @@ -234,6 +242,10 @@ describe('transform', () => {
events: [],
duration: [32, 800000000],
resource: Resource.empty(),
instrumentationLibrary: {
name: 'default',
version: '0.0.1',
},
};

const thriftSpan = spanToThrift(readableSpan);
Expand Down Expand Up @@ -273,6 +285,10 @@ describe('transform', () => {
events: [],
duration: [32, 800000000],
resource: Resource.empty(),
instrumentationLibrary: {
name: 'default',
version: '0.0.1',
},
};

const thriftSpan = spanToThrift(readableSpan);
Expand Down
4 changes: 4 additions & 0 deletions packages/opentelemetry-exporter-zipkin/test/zipkin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
ExportResult,
NoopLogger,
hrTimeToMicroseconds,
InstrumentationLibrary,
} from '@opentelemetry/core';
import * as api from '@opentelemetry/api';
import { Resource } from '@opentelemetry/resources';
Expand Down Expand Up @@ -54,6 +55,7 @@ function getReadableSpan() {
links: [],
events: [],
resource: Resource.empty(),
instrumentationLibrary: new InstrumentationLibrary('default', '0.0.1'),
};
return readableSpan;
}
Expand Down Expand Up @@ -161,6 +163,7 @@ describe('ZipkinExporter', () => {
},
],
resource: Resource.empty(),
instrumentationLibrary: new InstrumentationLibrary('default', '0.0.1'),
};
const span2: ReadableSpan = {
name: 'my-span',
Expand All @@ -181,6 +184,7 @@ describe('ZipkinExporter', () => {
links: [],
events: [],
resource: Resource.empty(),
instrumentationLibrary: new InstrumentationLibrary('default', '0.0.1'),
};

const exporter = new ZipkinExporter({
Expand Down

0 comments on commit 7ebeec1

Please sign in to comment.