Skip to content

WIP: use a direct access checker in client#2802

Open
sushanb wants to merge 3 commits intomainfrom
direct_access
Open

WIP: use a direct access checker in client#2802
sushanb wants to merge 3 commits intomainfrom
direct_access

Conversation

@sushanb
Copy link
Contributor

@sushanb sushanb commented Feb 24, 2026

  1. Needs PeerInfo plumbing.
  2. Remove Log Lines for debuggings

@sushanb sushanb requested review from a team as code owners February 24, 2026 19:22
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: bigtable Issues related to the googleapis/java-bigtable API. labels Feb 24, 2026
Meter meter = openTelemetry.getMeter(METER_NAME);
this.compatibleGauge =
meter
.gaugeBuilder(DIRECT_ACCESS_COMPATIBLE_NAME)
Copy link

Choose a reason for hiding this comment

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

AFAIK, gauges cannot be aggregated. Have you tried running a few clients and run a query to graph the number of eligible clients? Also, how can we know the number of not eligible clients if this reports 0?
Maybe worth converting to UpDownCounter with a label signifying eligibility.

// Wrap the channel with our custom ALTS interceptor
Channel interceptedChannel = ClientInterceptors.intercept(channel, altsInterceptor);

ManagedChannel wrappedManagedChannel =
Copy link

Choose a reason for hiding this comment

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

Just FYI: welp, this is awkward -- ChannelPrimer should operate on Channel and not ManagedChannel, but I'm not sure if we can change this now. If we could change it, we wouldn't need this wrapper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the googleapis/java-bigtable API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants