Skip to content
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

Partially redesign Attributes #529

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

NthPortal
Copy link
Contributor

@NthPortal NthPortal commented Mar 1, 2024

Disallow having multiple Attributes with the same name, even if they are of different types.

Simplify Attributes by no longer having its API treat it like a map—rename updated to added, make toMap package private, and remove the following methods:
contains, removed, -, removedAll, --, keys

Fixes #513

Alternative (that I prefer) to #515

Disallow having multiple `Attribute`s with the same name, even if
they are of different types.

Simplify `Attributes` by no longer having its API treat it like a
map—rename `updated` to `added`, make `toMap` package private, and
remove the following methods:
`contains`, `removed`, `-`, `removedAll`, `--`, `keys`
@NthPortal NthPortal requested a review from iRevive March 1, 2024 00:05
@iRevive
Copy link
Contributor

iRevive commented Mar 8, 2024

I like the ideas you brought in the #515. Also, they align with #515 (comment).

@NthPortal NthPortal merged commit 17751d4 into typelevel:main Mar 11, 2024
10 checks passed
@NthPortal NthPortal deleted the simple-attributes/PR branch March 11, 2024 19:50
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.

Inconsistent Attributes key behaviour between otel4s and oteljava
2 participants