Skip to content

Commit

Permalink
Add deprecation message.
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonWeber committed Feb 13, 2025
1 parent 4bbac22 commit d3a2b11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/opentelemetry-sdk-trace-base/src/Span.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export class Span implements APISpan, ReadableSpan {
// purposes but are not intended to be written-to directly.
private readonly _spanContext: SpanContext;
readonly kind: SpanKind;
/**
* @deprecated
* Please use {@link parentSpanContext}'s spanId instead.
*/
readonly parentSpanId?: string;
readonly parentSpanContext?: SpanContext;
readonly attributes: SpanAttributes = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export interface ReadableSpan {
readonly name: string;
readonly kind: SpanKind;
readonly spanContext: () => SpanContext;
/**
* @deprecated
* Use {@link parentSpanContext}'s spanId instead.
*/
readonly parentSpanId?: string;
readonly parentSpanContext?: SpanContext;
readonly startTime: HrTime;
Expand Down

0 comments on commit d3a2b11

Please sign in to comment.