Skip to content

Add metric to track ListWorkflowExecutions query length#10029

Open
rodrigozhou wants to merge 1 commit intomainfrom
rodrigozhou/vis-query-length
Open

Add metric to track ListWorkflowExecutions query length#10029
rodrigozhou wants to merge 1 commit intomainfrom
rodrigozhou/vis-query-length

Conversation

@rodrigozhou
Copy link
Copy Markdown
Contributor

@rodrigozhou rodrigozhou commented Apr 22, 2026

What changed?

Add metric to track ListWorkflowExecutions query length

Why?

Tracking query length

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

@rodrigozhou rodrigozhou requested review from a team as code owners April 22, 2026 17:37
Comment thread service/frontend/workflow_handler.go Outdated
Comment thread common/metrics/metric_defs.go Outdated
NamespaceHostRPSLimit = NewGaugeDef("namespace_host_rps_limit")
HandoverWaitLatency = NewTimerDef("handover_wait_latency")

VisibilityListWorkflowExecutionsQueryLength = NewDimensionlessHistogramDef("visibility_list_workflows_query_length")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

fmi, what is DimensionlessHistogramDef?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's the metric type when you want percentiles.

@rodrigozhou rodrigozhou force-pushed the rodrigozhou/vis-query-length branch from d7d8134 to f02e5f8 Compare April 24, 2026 18:26
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