File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
packages/core/src/tracing Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -444,13 +444,17 @@ export class Span implements SpanInterface {
444
444
445
445
/**
446
446
* @inheritDoc
447
+ *
448
+ * @deprecated Use `spanToTraceHeader()` instead.
447
449
*/
448
450
public toTraceparent ( ) : string {
449
451
return spanToTraceHeader ( this ) ;
450
452
}
451
453
452
454
/**
453
455
* @inheritDoc
456
+ *
457
+ * @deprecated Use `spanToJSON()` or access the fields directly instead.
454
458
*/
455
459
public toContext ( ) : SpanContext {
456
460
return dropUndefinedKeys ( {
@@ -471,6 +475,8 @@ export class Span implements SpanInterface {
471
475
472
476
/**
473
477
* @inheritDoc
478
+ *
479
+ * @deprecated Update the fields directly instead.
474
480
*/
475
481
public updateWithContext ( spanContext : SpanContext ) : this {
476
482
// eslint-disable-next-line deprecation/deprecation
@@ -493,6 +499,8 @@ export class Span implements SpanInterface {
493
499
494
500
/**
495
501
* @inheritDoc
502
+ *
503
+ * @deprecated Use `spanToTraceContext()` util function instead.
496
504
*/
497
505
public getTraceContext ( ) : TraceContext {
498
506
return spanToTraceContext ( this ) ;
You can’t perform that action at this time.
0 commit comments