Skip to content

Instrumentation Scope and cloning #2246

@cijothomas

Description

@cijothomas

Follow up to #2220

I think we should remove the Cow, and make scope take owned versions. Scopes are created only very few times in the app, so there should not be perf concerns.
https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry/src/common.rs#L422

if perf is a concern, we can make Instrumentation Scope be an Arc of InstrumentationScopeInner to make cloning cheap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions