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

Replace HttpAttributes with accessors #11324

Merged
merged 12 commits into from
Jan 24, 2025
Merged

Replace HttpAttributes with accessors #11324

merged 12 commits into from
Jan 24, 2025

Conversation

yawkat
Copy link
Member

@yawkat yawkat commented Nov 7, 2024

Attributes are a suboptimal way of adding metadata to requests and responses, both because they need a string lookup, and because they require conversion.

Attributes are a suboptimal way of adding metadata to requests and responses, both because they need a string lookup, and because they require conversion.
@yawkat yawkat added the type: improvement A minor improvement to an existing feature label Nov 7, 2024
@yawkat yawkat added this to the 4.8.0 milestone Nov 7, 2024
@altro3
Copy link
Contributor

altro3 commented Nov 8, 2024

@yawkat I think it would be better to add a fix for the missing SERVICE_ID attribute in the JDK http client at this point. See: #11309

@yawkat
Copy link
Member Author

yawkat commented Nov 8, 2024

it's not super important that core code is migrated from HttpAttributes immediately, so #11309 can stay as-is. the main concern is users and non-core micronaut projects.

* @since 4.8.0
*/
@SuppressWarnings("removal")
public final class ClientAttributes {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this regarded public API?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes

*/
@Deprecated(forRemoval = true)
Copy link
Contributor

Choose a reason for hiding this comment

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

add @since to all deprecated annotations

# Conflicts:
#	http-server-netty/src/main/java/io/micronaut/http/server/netty/RoutingInBoundHandler.java
@yawkat yawkat merged commit 466bfe1 into 4.8.x Jan 24, 2025
22 checks passed
@yawkat yawkat deleted the attribute-accessors branch January 24, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A minor improvement to an existing feature
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants