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

loadbalancer-experimental: thread through the ConnectionPoolStrategyFactory #2969

Conversation

bryce-anderson
Copy link
Contributor

@bryce-anderson bryce-anderson commented Jun 14, 2024

Motivation:

We have a type ConnectionPoolStrategyFactory that is using the targetResource name for observability, contrary to the rest of the DefaultLoadBalancer which is using lbDescription. This happens because we accept a fully materialized ConnectionPoolStrategy in the DefaultLoadBalancer constructor instead of a factory like most everything else.

Modifications:

  • Thread through the factory into the DefaultLoadBalancer constructor.
  • Fix the parameter names to reflect that it's now lbDescription being used.

…actory

Motivation:

We have a type ConnectionPoolStrategyFactory that is using the `targetResource`
name for observability, contrary to the rest of the DefaultLoadBalancer
which is using `lbDescription`. This happens because we accept a fully
materialized ConnectionPoolStrategy in the DefaultLoadBalancer constructor
instead of a factory like most everything else.

Modifications:

- Thread through the factory into the DefaultLoadBalancer constructor.
- Fix the parameter names to reflect that it's now lbDescription being used.
@bryce-anderson bryce-anderson changed the title loadbalancer-experimental: thread through the ConnectionPoolStrategyF… loadbalancer-experimental: thread through the ConnectionPoolStrategyFactory Jun 14, 2024
@bryce-anderson bryce-anderson merged commit 411ddc6 into apple:main Jun 14, 2024
11 checks passed
bryce-anderson added a commit to bryce-anderson/servicetalk that referenced this pull request Jun 14, 2024
…actory (apple#2969)

Motivation:

We have a type ConnectionPoolStrategyFactory that is using the `targetResource`
name for observability, contrary to the rest of the DefaultLoadBalancer
which is using `lbDescription`. This happens because we accept a fully
materialized ConnectionPoolStrategy in the DefaultLoadBalancer constructor
instead of a factory like most everything else.

Modifications:

- Thread through the factory into the DefaultLoadBalancer constructor.
- Fix the parameter names to reflect that it's now lbDescription being used.
@bryce-anderson bryce-anderson deleted the bl_anderson/threadThroughConnectionPoolStrategyFactory branch June 14, 2024 18:24
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.

2 participants