Skip to content

Commit

Permalink
chore: TODO cleanup (open-telemetry#439)
Browse files Browse the repository at this point in the history
* chore: cleanup closed issues

* chore: update basic tracer

* chore: clear open-telemetry#59

* chore: clear todo in DEFAULT_CONFIG
  • Loading branch information
mayurkale22 authored Oct 18, 2019
1 parent 17690e6 commit d3ce25c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 21 deletions.
6 changes: 0 additions & 6 deletions packages/opentelemetry-tracing/src/Span.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { TraceParams } from './types';
* This class represents a span.
*/
export class Span implements types.Span, ReadableSpan {
private readonly _tracer: types.Tracer;
// Below properties are included to implement ReadableSpan for export
// purposes but are not intended to be written-to directly.
readonly spanContext: types.SpanContext;
Expand Down Expand Up @@ -55,7 +54,6 @@ export class Span implements types.Span, ReadableSpan {
parentSpanId?: string,
startTime: types.TimeInput = hrTime()
) {
this._tracer = parentTracer;
this.name = spanName;
this.spanContext = spanContext;
this.parentSpanId = parentSpanId;
Expand All @@ -67,10 +65,6 @@ export class Span implements types.Span, ReadableSpan {
this._spanProcessor.onStart(this);
}

tracer(): types.Tracer {
return this._tracer;
}

context(): types.SpanContext {
return this.spanContext;
}
Expand Down
2 changes: 0 additions & 2 deletions packages/opentelemetry-tracing/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,4 @@ export const DEFAULT_CONFIG = {
numberOfLinksPerSpan: DEFAULT_MAX_LINKS_PER_SPAN,
numberOfEventsPerSpan: DEFAULT_MAX_EVENTS_PER_SPAN,
},
// @todo add support for plugins
// plugins: {},
};
1 change: 0 additions & 1 deletion packages/opentelemetry-tracing/test/Span.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ describe('Span', () => {
it('should create a Span instance', () => {
const span = new Span(tracer, name, spanContext, SpanKind.SERVER);
assert.ok(span instanceof Span);
assert.strictEqual(span.tracer(), tracer);
span.end();
});

Expand Down
10 changes: 0 additions & 10 deletions packages/opentelemetry-types/src/trace/span.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ export interface Span {
*/
context(): SpanContext;

// /**
// * # TODO
// * Returns the Tracer object used to create this Span.
// * https://github.com/open-telemetry/opentelemetry-specification/issues/21
// */
// tracer(): Tracer;

/**
* Sets an attribute to the span.
*
Expand Down Expand Up @@ -85,8 +78,6 @@ export interface Span {
/**
* Updates the Span name.
*
* TODO (revision): https://github.com/open-telemetry/opentelemetry-specification/issues/119
*
* @param name the Span name.
*/
updateName(name: string): this;
Expand All @@ -102,7 +93,6 @@ export interface Span {
*
* @param [endTime] the time to set as Span's end time. If not provided,
* use the current time as the span's end time.
* TODO (Add timestamp format): https://github.com/open-telemetry/opentelemetry-js/issues/19
*/
end(endTime?: TimeInput): void;

Expand Down
2 changes: 0 additions & 2 deletions packages/opentelemetry-types/src/trace/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ export interface Status {

/**
* An enumeration of canonical status codes.
*
* TODO (revision): https://github.com/open-telemetry/opentelemetry-specification/issues/59
*/
export enum CanonicalCode {
/**
Expand Down

0 comments on commit d3ce25c

Please sign in to comment.