Skip to content

Commit

Permalink
rebase with open-telemetry#846
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 committed Mar 11, 2020
1 parent 60ceed1 commit 1fbb2ab
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
1 change: 0 additions & 1 deletion packages/opentelemetry-exporter-collector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
},
"devDependencies": {
"@babel/core": "^7.6.0",
"@opentelemetry/resources": "^0.4.0",
"@types/mocha": "^5.2.5",
"@types/node": "^12.6.8",
"@types/sinon": "^7.0.13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"access": "public"
},
"devDependencies": {
"@opentelemetry/resources": "^0.4.0",
"@types/mocha": "^5.2.7",
"@types/nock": "^11.1.0",
"@types/node": "^12.6.9",
Expand Down
1 change: 0 additions & 1 deletion packages/opentelemetry-exporter-zipkin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"access": "public"
},
"devDependencies": {
"@opentelemetry/resources": "^0.4.0",
"@types/mocha": "^5.2.7",
"@types/nock": "^10.0.3",
"@types/node": "^12.6.9",
Expand Down
13 changes: 11 additions & 2 deletions packages/opentelemetry-exporter-zipkin/test/transform.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
NoopLogger,
hrTimeToMicroseconds,
hrTimeDuration,
VERSION,
} from '@opentelemetry/core';
import {
toZipkinSpan,
Expand Down Expand Up @@ -48,7 +49,6 @@ const DUMMY_RESOUCE = new Resource({
version: 1,
cost: 112.12,
});
const EMPTY_RESOUCE = Resource.empty();

describe('transform', () => {
describe('toZipkinSpan', () => {
Expand Down Expand Up @@ -94,6 +94,9 @@ describe('transform', () => {
key1: 'value1',
key2: 'value2',
[statusCodeTagName]: 'OK',
'telemetry.sdk.language': 'nodejs',
'telemetry.sdk.name': 'opentelemetry',
'telemetry.sdk.version': VERSION,
},
timestamp: hrTimeToMicroseconds(span.startTime),
traceId: span.spanContext.traceId,
Expand Down Expand Up @@ -128,6 +131,9 @@ describe('transform', () => {
parentId: undefined,
tags: {
[statusCodeTagName]: 'OK',
'telemetry.sdk.language': 'nodejs',
'telemetry.sdk.name': 'opentelemetry',
'telemetry.sdk.version': VERSION,
},
timestamp: hrTimeToMicroseconds(span.startTime),
traceId: span.spanContext.traceId,
Expand Down Expand Up @@ -167,6 +173,9 @@ describe('transform', () => {
parentId: undefined,
tags: {
[statusCodeTagName]: 'OK',
'telemetry.sdk.language': 'nodejs',
'telemetry.sdk.name': 'opentelemetry',
'telemetry.sdk.version': VERSION,
},
timestamp: hrTimeToMicroseconds(span.startTime),
traceId: span.spanContext.traceId,
Expand Down Expand Up @@ -226,7 +235,7 @@ describe('transform', () => {
span.status,
statusCodeTagName,
statusDescriptionTagName,
EMPTY_RESOUCE
Resource.empty()
);

assert.deepStrictEqual(tags, {
Expand Down
6 changes: 0 additions & 6 deletions packages/opentelemetry-resources/src/Resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,4 @@ export class Resource {
const mergedLabels = Object.assign({}, other.labels, this.labels);
return new Resource(mergedLabels);
}

static empty(): Resource {
return EMPTY_RESOURCE;
}
}

const EMPTY_RESOURCE = new Resource({});

0 comments on commit 1fbb2ab

Please sign in to comment.