File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -277,8 +277,9 @@ export class Span implements SpanInterface {
277277 /**
278278 * @inheritDoc
279279 */
280- public updateName ( name : string ) : void {
280+ public updateName ( name : string ) : this {
281281 this . description = name ;
282+ return this ;
282283 }
283284
284285 /**
Original file line number Diff line number Diff line change @@ -101,8 +101,9 @@ export class Transaction extends SpanClass implements TransactionInterface {
101101 }
102102
103103 /** @inheritdoc */
104- public updateName ( name : string ) : void {
104+ public updateName ( name : string ) : this {
105105 this . _name = name ;
106+ return this ;
106107 }
107108
108109 /**
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ export interface Span extends SpanContext {
212212 /**
213213 * Update the name of the span.
214214 */
215- updateName ( name : string ) : void ;
215+ updateName ( name : string ) : this ;
216216
217217 /**
218218 * Creates a new `Span` while setting the current `Span.id` as `parentSpanId`.
You can’t perform that action at this time.
0 commit comments