Skip to content

Provide explicit set/get to avoid SpanAttributeConvertible wrapping #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

ktoso
Copy link
Member

@ktoso ktoso commented Mar 20, 2023

Provide explicit set/get to avoid SpanAttributeConvertible existential wrapping, to those who care about such overhead

Motivation:

Provide more control and allow avoiding the existential SpanAtrributeConvertible access when using the subscript.

Modifications:

additional API to avoid the existential

Result:
There is a way to use the API completely avoiding existentials

resolves #82

@ktoso ktoso force-pushed the wip-no-existentials-no-crisis branch from c2cf5d6 to 5ccec37 Compare March 20, 2023 22:26
@ktoso ktoso requested a review from slashmo March 20, 2023 22:26
@ktoso ktoso force-pushed the wip-no-existentials-no-crisis branch from 5ccec37 to 85b7e6b Compare March 20, 2023 22:27
@ktoso ktoso requested a review from fabianfett March 20, 2023 22:27
@ktoso ktoso force-pushed the wip-no-existentials-no-crisis branch from 85b7e6b to 32d886a Compare March 20, 2023 22:33
@ktoso ktoso requested review from tomerd and yim-lee March 20, 2023 22:39
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can do without this file now that this project is Swift 5.6+?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to check :-) Yes I think so, right? I'll remove

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#97

**Motivation:**

Provide more control and allow avoiding the existential
SpanAtrributeConvertible access when using the subscript.

**Modifications:**

additional API to avoid the existential

**Result:**
There is a way to use the API completely avoiding existentials
@ktoso ktoso force-pushed the wip-no-existentials-no-crisis branch from 29129aa to 09f0f98 Compare March 21, 2023 02:13
@ktoso ktoso merged commit b42cf43 into main Mar 21, 2023
@ktoso ktoso deleted the wip-no-existentials-no-crisis branch March 21, 2023 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SpanAttributes subscript should use concrete type and not an existential
2 participants