Skip to content

Avoid creating superfluous copies of OtelSpan instances #900

@GFriedrich

Description

@GFriedrich

When calling certain setters on a OtelSpan it causes the OtelSpan to be copied and returned.
Several other setters on the same class though doesn't return a copy but just this.

As agreed on #890 (comment) the setters should always return this to align the behaviour on all of them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions