xds: Remove xds authority label from metric registration#11760
xds: Remove xds authority label from metric registration#11760DNVindhya merged 2 commits intogrpc:masterfrom
Conversation
…resources` gauge, until the label value is available to record.
ejona86
left a comment
There was a problem hiding this comment.
Who would experience the crash? Why didn't tests notice?
|
Oh, this is a failure only within the gauge callback, which is some random thread. So the failure is either just logged or it prevents OTel from publishing. But gRPC itself would appear operational. |
Cloud Big Table reported this issue. I have captured the details provided by them in b/384738716. We didn't catch in tests because we mocked BatchRecorder. |
We should use |
Updates to use |
* Remove `grpc.xds.authority` label while registering `grpc.xds_client.resources` gauge, until the label value is available to record.
XdsClient metrics were added in #11661. It is missing
grpc.xds.authoritylabel forgrpc.xds_client.resourcesgauge.While label value is absent, label got added while registering the gauge. This leads to
java.lang.IllegalArgumentException: Incorrect number of required labels provided.on invoking callback. Stack trace is added below:As a fix, we are removing the label from gauge registration until
gpc.xds.authoritylabel value is available.