Skip to content

Replace creation of set on every span.status call with frozen set #6207

Description

@ericapisani

Within the status setter method on the StreamedSpan class, we create a new set containing the options from the SpanStatus enum to check if the value provided is valid.

This is a small performance hit that can easily be removed by using either a tuple or a frozenset, especially given this function is in the hot path of a lot of integrations

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions