Skip to content

Commit d18c844

Browse files
bg451mayurkale22
authored andcommitted
chore: remove all references to SpanData (open-telemetry#286)
* chore: remove all references to SpanData * yarn fix
1 parent fd1400a commit d18c844

File tree

10 files changed

+0
-49
lines changed

10 files changed

+0
-49
lines changed

packages/opentelemetry-basic-tracer/src/BasicTracer.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,6 @@ export class BasicTracer implements types.Tracer {
142142
return this._scopeManager.bind(target, span);
143143
}
144144

145-
/**
146-
* Records a SpanData.
147-
*/
148-
/* c8 ignore next 3 */
149-
recordSpanData(span: types.Span): void {
150-
// TODO: notify exporter
151-
}
152-
153145
/**
154146
* Returns the binary format interface which can serialize/deserialize Spans.
155147
*/

packages/opentelemetry-basic-tracer/test/BasicTracer.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,6 @@ describe('BasicTracer', () => {
350350
});
351351
});
352352

353-
describe('.recordSpanData()', () => {
354-
// @todo: implement
355-
it('should call exporters with span data');
356-
});
357-
358353
describe('.getBinaryFormat()', () => {
359354
it('should get default binary formatter', () => {
360355
const tracer = new BasicTracer();

packages/opentelemetry-core/src/trace/NoopTracer.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ export class NoopTracer implements Tracer {
4949
return target;
5050
}
5151

52-
// By default does nothing
53-
recordSpanData(span: Span): void {}
54-
5552
// By default does nothing
5653
getBinaryFormat(): BinaryFormat {
5754
return NOOP_BINARY_FORMAT;

packages/opentelemetry-core/src/trace/TracerDelegate.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,6 @@ export class TracerDelegate implements types.Tracer {
8282
);
8383
}
8484

85-
recordSpanData(span: types.Span): void {
86-
return this._currentTracer.recordSpanData.apply(
87-
this._currentTracer,
88-
// tslint:disable-next-line:no-any
89-
arguments as any
90-
);
91-
}
92-
9385
getBinaryFormat(): types.BinaryFormat {
9486
return this._currentTracer.getBinaryFormat.apply(
9587
this._currentTracer,

packages/opentelemetry-core/test/trace/NoopTracer.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ describe('NoopTracer', () => {
3737
NOOP_SPAN
3838
);
3939

40-
tracer.recordSpanData(NOOP_SPAN);
41-
4240
assert.deepStrictEqual(tracer.getCurrentSpan(), NOOP_SPAN);
4341
const httpTextFormat = tracer.getHttpTextFormat();
4442
assert.ok(httpTextFormat);

packages/opentelemetry-core/test/trace/TracerDelegate.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ describe('TracerDelegate', () => {
2626
'startSpan',
2727
'withSpan',
2828
'bind',
29-
'recordSpanData',
3029
'getBinaryFormat',
3130
'getHttpTextFormat',
3231
];

packages/opentelemetry-core/test/trace/globaltracer-utils.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ describe('globaltracer-utils', () => {
2828
'getCurrentSpan',
2929
'startSpan',
3030
'withSpan',
31-
'recordSpanData',
3231
'getBinaryFormat',
3332
'getHttpTextFormat',
3433
];

packages/opentelemetry-node-sdk/test/NodeTracer.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,6 @@ describe('NodeTracer', () => {
233233
});
234234
});
235235

236-
describe('.recordSpanData()', () => {
237-
// @todo: implement
238-
it('should call exporters with span data');
239-
});
240-
241236
describe('.getBinaryFormat()', () => {
242237
it('should get default binary formatter', () => {
243238
tracer = new NodeTracer({});

packages/opentelemetry-plugin-http/test/functionals/http-disable.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ describe('HttpPlugin', () => {
5555
beforeEach(() => {
5656
tracer.startSpan = sinon.spy();
5757
tracer.withSpan = sinon.spy();
58-
tracer.recordSpanData = sinon.spy();
5958
});
6059

6160
afterEach(() => {
@@ -78,10 +77,6 @@ describe('HttpPlugin', () => {
7877
false
7978
);
8079
assert.strictEqual((tracer.withSpan as sinon.SinonSpy).called, false);
81-
assert.strictEqual(
82-
(tracer.recordSpanData as sinon.SinonSpy).called,
83-
false
84-
);
8580
});
8681
});
8782
});

packages/opentelemetry-types/src/trace/tracer.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,6 @@ export interface Tracer {
6565
*/
6666
bind<T>(target: T, span?: Span): T;
6767

68-
/**
69-
* Send a pre-populated span object to the exporter.
70-
* Sampling and recording decisions as well as other collection optimizations
71-
* are the responsibility of a caller.
72-
*
73-
* @todo: Pending API discussion. Revisit if Span or SpanData should be passed
74-
* in here once this is sorted out.
75-
* @param span Span Data to be reported to all exporters.
76-
*/
77-
recordSpanData(span: Span): void;
78-
7968
/**
8069
* Returns the {@link BinaryFormat} interface which can serialize/deserialize
8170
* Spans.

0 commit comments

Comments
 (0)