Skip to content

chore(tasks) Switch to taskbroker-client metrics#635

Open
markstory wants to merge 2 commits into
mainfrom
use-taskbroker-client-metrics
Open

chore(tasks) Switch to taskbroker-client metrics#635
markstory wants to merge 2 commits into
mainfrom
use-taskbroker-client-metrics

Conversation

@markstory

Copy link
Copy Markdown
Member

I'm reworking client metrics for taskbroker clients and this aligns launchpad with that direction.

The existing metric names will continue to emit alongside an unprefixed metric. The unprefixed metric will have both application and processing_pool as tags.

Refs STREAM-1173

I'm reworking client metrics for taskbroker clients and this aligns
launchpad with that direction.

The existing metric names will continue to emit alongside an unprefixed
metric. The unprefixed metric will have both `application` and
`processing_pool` as tags.

Refs STREAM-1173
@linear-code

linear-code Bot commented Jun 19, 2026

Copy link
Copy Markdown

STREAM-1173

@sentry

sentry Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

📲 Install Builds

iOS

🔗 App Name App ID Version Configuration
HackerNews com.emergetools.hackernews 3.8 (1) Release

Android

🔗 App Name App ID Version Configuration
Hacker News com.emergetools.hackernews 1.0.2 (13) Release

⚙️ launchpad-test-android Build Distribution Settings

@markstory markstory marked this pull request as ready for review June 22, 2026 14:14
processing_pool="launchpad",
statsd_host=host,
statsd_port=port,
enable_prefixed_metrics=True,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Once this has rolled out and dashboards have been updated, I'll do another change to remove this.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c9b8fbc. Configure here.

processing_pool="launchpad",
statsd_host=host,
statsd_port=port,
enable_prefixed_metrics=True,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hardcoded processing pool tag

Medium Severity

create_metrics always sets processing_pool to launchpad, but the worker can be started with a different --processing-pool-name that is only passed to TaskWorker. Unprefixed taskbroker metrics will then carry the wrong processing_pool tag relative to the pool the worker actually joins.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c9b8fbc. Configure here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Unprefixed taskbroker metrics will then carry the wrong processing_pool tag relative to the pool the worker actually joins.

Not true, when a worker has a processing pool name provided, that name will be used instead. This is meant as a fallback.

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