diff --git a/packages/opentelemetry-exporter-stackdriver-trace/test/exporter.test.ts b/packages/opentelemetry-exporter-stackdriver-trace/test/exporter.test.ts index 6ad382e2262..6d4321f52b9 100644 --- a/packages/opentelemetry-exporter-stackdriver-trace/test/exporter.test.ts +++ b/packages/opentelemetry-exporter-stackdriver-trace/test/exporter.test.ts @@ -122,11 +122,7 @@ describe('Stackdriver Trace Exporter', () => { isRemote: true, }, status: { code: types.CanonicalCode.OK }, - resource: new Resource({ - service: 'ui', - version: 1, - cost: 112.12, - }), + resource: Resource.empty(), }; const result = await new Promise((resolve, reject) => { diff --git a/packages/opentelemetry-exporter-zipkin/test/zipkin.test.ts b/packages/opentelemetry-exporter-zipkin/test/zipkin.test.ts index 14f516dd144..bd0105e5536 100644 --- a/packages/opentelemetry-exporter-zipkin/test/zipkin.test.ts +++ b/packages/opentelemetry-exporter-zipkin/test/zipkin.test.ts @@ -49,11 +49,7 @@ function getReadableSpan() { attributes: {}, links: [], events: [], - resource: new Resource({ - service: 'ui', - version: 1, - cost: 112.12, - }), + resource: Resource.empty(), }; return readableSpan; } diff --git a/packages/opentelemetry-tracing/src/Span.ts b/packages/opentelemetry-tracing/src/Span.ts index 44afabe5342..4028564a4d0 100644 --- a/packages/opentelemetry-tracing/src/Span.ts +++ b/packages/opentelemetry-tracing/src/Span.ts @@ -21,11 +21,11 @@ import { isTimeInput, timeInputToHrTime, } from '@opentelemetry/core'; +import { Resource } from '@opentelemetry/resources'; import { ReadableSpan } from './export/ReadableSpan'; import { Tracer } from './Tracer'; import { SpanProcessor } from './SpanProcessor'; import { TraceParams } from './types'; -import { Resource } from '@opentelemetry/resources'; /** * This class represents a span.