Skip to content

Normalize Nexus gRPC request metric tags - #3236

Open
pcbeingused333 wants to merge 2 commits into
temporalio:mainfrom
pcbeingused333:fix/nexus-request-metric-tags
Open

pcbeingused333 wants to merge 2 commits into
temporalio:mainfrom
pcbeingused333:fix/nexus-request-metric-tags

Conversation

@pcbeingused333

Copy link
Copy Markdown
Contributor

Follow-up to #3231, which added the same default for update_name.

Nexus response RPCs attach nexus_service and nexus_operation to their request counters and latency metrics. Regular RPCs publish the same metric names without those labels, which can cause Prometheus to reject series with a different label set.

Add both labels to the default metric tags with the value none. Nexus response RPCs continue to use the service and operation names from their call scope. Other RPCs gain the two default labels. No server changes are required.

The regression test checks that a Nexus response RPC and a regular RPC both report request counters and latency with identical label keys. It also checks that the Nexus values survive and the regular RPC uses the defaults.

With the default tags from main, the test fails because only the Nexus response has the two label keys. It passes with this change. spotlessCheck also passes.

AI assistance was used to prepare this change.

@pcbeingused333
pcbeingused333 requested a review from a team as a code owner November 25, 2026 03:57

This branch has not been deployed

No deployments
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.

1 participant