Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/core/src/tracing/span.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ export class SpanRecorder {
export class Span implements SpanInterface {
/**
* Tags for the span.
* @deprecated Use `getSpanAttributes(span)` instead.
* @deprecated Use `spanToJSON(span).atttributes` instead.
*/
public tags: { [key: string]: Primitive };

/**
* Data for the span.
* @deprecated Use `getSpanAttributes(span)` instead.
* @deprecated Use `spanToJSON(span).atttributes` instead.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
public data: { [key: string]: any };
Expand Down Expand Up @@ -263,7 +263,7 @@ export class Span implements SpanInterface {

/**
* Attributes for the span.
* @deprecated Use `getSpanAttributes(span)` instead.
* @deprecated Use `spanToJSON(span).atttributes` instead.
*/
public get attributes(): SpanAttributes {
return this._attributes;
Expand Down
6 changes: 3 additions & 3 deletions packages/types/src/span.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,19 +226,19 @@ export interface Span extends Omit<SpanContext, 'op' | 'status' | 'origin'> {

/**
* Tags for the span.
* @deprecated Use `getSpanAttributes(span)` instead.
* @deprecated Use `spanToJSON(span).atttributes` instead.
*/
tags: { [key: string]: Primitive };

/**
* Data for the span.
* @deprecated Use `getSpanAttributes(span)` instead.
* @deprecated Use `spanToJSON(span).atttributes` instead.
*/
data: { [key: string]: any };

/**
* Attributes for the span.
* @deprecated Use `getSpanAttributes(span)` instead.
* @deprecated Use `spanToJSON(span).atttributes` instead.
*/
attributes: SpanAttributes;

Expand Down