Skip to content

Use client-signals Operator() for metrics classification#5000

Merged
clouvet merged 2 commits into
masterfrom
use-operator-method
Jul 13, 2026
Merged

Use client-signals Operator() for metrics classification#5000
clouvet merged 2 commits into
masterfrom
use-operator-method

Conversation

@clouvet

@clouvet clouvet commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bumps client-signals to v0.4.2
  • Simplifies OperatorFromSignals to use the library's new Operator() method instead of reimplementing the precedence logic

Related PRs

Test plan

  • go build passes
  • Verify deploy/launch metrics still emit correct operator and agentName values

🤖 Generated with Claude Code

Bump client-signals to v0.4.2 and simplify OperatorFromSignals to
delegate to the library's Operator() method instead of reimplementing
the precedence logic locally.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Copilot AI 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.

Pull request overview

This PR updates flyctl’s metrics operator classification by upgrading github.com/superfly/client-signals/go and switching OperatorFromSignals to rely on the library’s new Signals.Operator() precedence logic.

Changes:

  • Bump client-signals dependency from v0.3.0 to v0.4.2.
  • Simplify OperatorFromSignals to use Signals.Operator() instead of locally re-encoding precedence.
  • Update module sums to reflect the dependency upgrade.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
internal/metrics/helpers.go Uses Signals.Operator() for operator classification in deploy/launch metrics payloads.
go.mod Upgrades github.com/superfly/client-signals/go to v0.4.2.
go.sum Adds sums for the upgraded client-signals versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/metrics/helpers.go
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@clouvet clouvet merged commit 7950417 into master Jul 13, 2026
23 of 24 checks passed
@clouvet clouvet deleted the use-operator-method branch July 13, 2026 15:23
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.

3 participants