Skip to content

fix(taskworker) Improve metrics for scheduler #93051

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

markstory
Copy link
Member

Add a taskname dimension to scheduled tasks so that we can filter and breakdown scheduler operations.

Add a taskname dimension to scheduled tasks so that we can filter and
breakdown scheduler operations.
@markstory markstory requested a review from a team as a code owner June 6, 2025 19:02
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 6, 2025
logger.info("taskworker.scheduler.delay_task", extra={"task": entry.fullname})
metrics.incr("taskworker.scheduler.delay_task")
logger.info("taskworker.scheduler.delay_task", extra={"fullname": entry.fullname})
metrics.incr("taskworker.scheduler.delay_task", tags={"taskname": entry.taskname})
Copy link
Member

Choose a reason for hiding this comment

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

Is there a way to get namespace in this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I can add that as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants