Skip to content

Small matching metric improvements#10181

Open
majiru wants to merge 3 commits intotemporalio:mainfrom
majiru:ossm-metrics-combined
Open

Small matching metric improvements#10181
majiru wants to merge 3 commits intotemporalio:mainfrom
majiru:ossm-metrics-combined

Conversation

@majiru
Copy link
Copy Markdown
Contributor

@majiru majiru commented May 5, 2026

What changed?

Adds two new Gauge metrics, pending_polls and worker_count and a new result tag to the poller_latency metric.

Why?

We've identified that these would help improve visibility for future incidents or debugging.

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)

majiru and others added 3 commits May 5, 2026 11:31
Adds a new gauge metric `pending_polls` that tracks the number of in-flight
polls on each physical task queue. The gauge is updated whenever a poll
enters or exits PollTask.

Resolves OSSM-226

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds a `result` tag to the `poll_latency` timer metric with values:
- dispatch: task was returned to the poller
- timeout: poll expired without receiving a task
- failed: an internal error ended the poll

Resolves OSSM-227

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds a new gauge metric `worker_count` tracking distinct workers attached
to a task queue, updated whenever a worker is added or removed from
poller history. Only emitted from root partitions to avoid double-counting.

Resolves OSSM-228

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@majiru majiru marked this pull request as ready for review May 5, 2026 21:28
@majiru majiru requested review from a team as code owners May 5, 2026 21:28
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