Skip to content

[Feature Request] periodically re-emits Worker Metrics regardless of state transitions #1286

@billrich2001

Description

@billrich2001

Is your feature request related to a problem? Please describe.

task_slots_used, task_slots_available, and num_pollers metrics only get emitted from the SDK during a transition in the worker's state

Describe the solution you'd like

periodically re-emits these gauges regardless of state transitions

Additional context

In a longer running workflow where workers only allow 1 task slot, these metrics can appear dead since there is nothing being emitted since there are no worker state changes.
Temporal internal support ticket 30539

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions