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

fix inconsistent label cardinality error #7053

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

hai719
Copy link
Contributor

@hai719 hai719 commented Jan 7, 2025

What changed?

fix inconsistent label cardinality error

inconsistent label cardinality: expected 3 label values but got 4 in prometheus.Labels{"multi_region_namespace":"true", "operation":"SyncActivityTask", "service_name":"history", "temporal_service_type":"history"}

inconsistent label cardinality: expected 4 label values but got 5 in prometheus.Labels{"multi_region_namespace":"true", "namespace":"app-1996-frontline-uat.pfayb", "operation":"SyncActivityTask", "service_name":"history", "temporal_service_type":"history"}

Why?

How did you test it?

Potential risks

Documentation

Is hotfix candidate?

@hai719 hai719 requested a review from a team as a code owner January 7, 2025 18:52
@@ -141,6 +141,7 @@ func (e *taskExecutorImpl) handleActivityTask(
metrics.ServiceLatency.With(e.metricsHandler).Record(
time.Since(startTime),
metrics.OperationTag(metrics.SyncActivityTaskScope),
metrics.NamespaceTag(attr.GetNamespaceId()),
Copy link
Contributor

@hehaifengcn hehaifengcn Jan 7, 2025

Choose a reason for hiding this comment

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

any concern for cardinality with namespace id?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We already added ns here: link

@hai719 hai719 merged commit 31b4354 into main Jan 7, 2025
49 checks passed
@hai719 hai719 deleted the hai719/inconsistent_metrics_label branch January 7, 2025 19:30
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.

3 participants