Skip to content

bandit: add bandit.selected_tracks key - #29

Merged
AGMETEOR merged 1 commit into
mainfrom
allan/bandit-selected-tracks
Oct 5, 2026
Merged

AGMETEOR merged 1 commit into
mainfrom
allan/bandit-selected-tracks

Conversation

@AGMETEOR

@AGMETEOR AGMETEOR commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Adds BanditSelectedTracksKey (bandit.selected_tracks): the track name of each selected arm, index-aligned with bandit.selected_arms.

bandit.selected_arms holds arm IDs (r<region>:t<track>), which can't be read as track names in SigNoz without joining against the track table. Recording the names alongside lets the bandit select span be queried by track directly.

Consumer: getlantern/lantern-cloud#3501. Part of getlantern/engineering#3702.

The non-whitespace diff is the three added lines; the surrounding realignment is gofmt, since the new doc comment splits the const block's alignment group.

🤖 Generated with Claude Code

Track name of each selected arm, index-aligned with bandit.selected_arms,
so the bandit select span can be queried by track without joining arm
IDs (r<region>:t<track>) against the track table.

Part of getlantern/engineering#3702.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 5, 2026 10:22
@coderabbitai

coderabbitai Bot commented Oct 5, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bac378a9-1965-487c-97d0-52a9aaa79994
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The key follows established naming, typing, grouping, and documentation conventions.

Review effort: Balanced
Findings: None

What changed in this PR

Adds a Lantern-specific semantic convention for recording selected bandit track names alongside arm IDs.

Changes:

  • Adds BanditSelectedTracksKey as bandit.selected_tracks.
  • Documents index alignment with BanditSelectedArmsKey.
File Description
custom.go Defines and documents the new Bandit telemetry key.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@AGMETEOR AGMETEOR self-assigned this Oct 5, 2026
@AGMETEOR
AGMETEOR merged commit 8761556 into main Oct 5, 2026
2 checks passed
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.

2 participants