Skip to content

Conversation

@timgrein
Copy link
Contributor

Follow-up for comment in Add rerouting attributes to metrics PR.

Went with @prwhelan's suggestion. The previous code used Collectors.toMap, which doesn't give any guarantees on mutability, so it should be fine to use HashMap (mutable) in one method and Map.of (immutable) in others.

@timgrein timgrein added >non-issue :ml Machine learning Team:ML Meta label for the ML team v9.1.0 labels Feb 21, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@timgrein timgrein merged commit 71f80c4 into elastic:main Feb 21, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning >refactoring Team:ML Meta label for the ML team v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants