Skip to content

Conversation

Groxx
Copy link
Member

@Groxx Groxx commented Sep 4, 2025

Part cleanup due to discoveries in e.g. #7210, part prep-work for migrating metrics to almost literally any new setup (to make that easier and safer, by allowing int -> name lookups).

I believe this is a safe thing to do, as we don't seem to do anything fancy with the metric-def indexes.
But it's quite hard to verify because we don't have a unique type (fixed in #7238) and all the code here is rather value-oriented and fallback-y so it's hard to be totally confident that everything is handled.

Comment on lines +56 to +59
func (s scopeDefinition) GetOperationString() string {
return s.operation
}

Copy link
Member Author

Choose a reason for hiding this comment

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

could remove this - it's mostly just prep-work since almost anything leaving the scope-index ints will need it.

// cluster forwarding policy metrics
ClusterForwardingPolicyRequests

RingResolverError
Copy link
Member

Choose a reason for hiding this comment

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

what's the deal with this one? did it get missed somewhere?

Copy link
Member

@davidporter-id-au davidporter-id-au left a comment

Choose a reason for hiding this comment

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

lgtm, I couldn't think of a high-risk enough reason to want ot test this heavily in advance, unless metric DB poisining if there was some broken data is like... a high risk?

@Groxx
Copy link
Member Author

Groxx commented Sep 4, 2025

Yea, works for me at least. I didn't see anything in the process of doing #7238, so I think the worst case might be something in our internal code, and I don't think we have any unique metrics in there tbh. All re-used names (which probably would break prometheus, if we used it internally)

@Groxx Groxx merged commit 93f66d0 into cadence-workflow:master Sep 4, 2025
30 checks passed
@Groxx Groxx deleted the metric-ints branch September 4, 2025 23:49
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